长按语言输入
This commit is contained in:
parent
15550525fe
commit
983b68bbba
|
|
@ -15,6 +15,8 @@ class IMVoiceHoldView: UIView {
|
||||||
var wave : LottieAnimationView!
|
var wave : LottieAnimationView!
|
||||||
|
|
||||||
var swipeStackView: UIStackView!
|
var swipeStackView: UIStackView!
|
||||||
|
var swipeLab: UILabel!
|
||||||
|
var swipeImgView: UIImageView!
|
||||||
|
|
||||||
var tipLabel: UILabel!
|
var tipLabel: UILabel!
|
||||||
|
|
||||||
|
|
@ -109,12 +111,29 @@ class IMVoiceHoldView: UIView {
|
||||||
return voiceAnimation
|
return voiceAnimation
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
swipeLab = {
|
||||||
|
let lab = UILabel()
|
||||||
|
lab.text = "Swipe Up to Cancel"
|
||||||
|
lab.textColor = UIColor.white
|
||||||
|
lab.font = UIFont.systemFont(ofSize: 12)
|
||||||
|
return lab
|
||||||
|
}()
|
||||||
|
|
||||||
|
swipeImgView = {
|
||||||
|
let imgView = UIImageView(image: UIImage(named: "role_chat_up_cancel"))
|
||||||
|
return imgView
|
||||||
|
}()
|
||||||
|
|
||||||
swipeStackView = {
|
swipeStackView = {
|
||||||
let stackView = UIStackView(arrangedSubviews: [])
|
let stackView = UIStackView(arrangedSubviews: [swipeImgView, swipeLab])
|
||||||
stackView.spacing = 5.0
|
stackView.spacing = 5.0
|
||||||
stackView.distribution = .fill
|
stackView.distribution = .fill
|
||||||
stackView.alignment = .fill
|
stackView.alignment = .fill
|
||||||
|
insertSubview(stackView, belowSubview: overlayBg)
|
||||||
|
stackView.snp.makeConstraints { make in
|
||||||
|
make.centerX.equalToSuperview()
|
||||||
|
make.bottom.equalTo(voiceIconDecorationView.snp.top).offset(-15)
|
||||||
|
}
|
||||||
return stackView
|
return stackView
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
@ -125,7 +144,7 @@ class IMVoiceHoldView: UIView {
|
||||||
addSubview(v)
|
addSubview(v)
|
||||||
v.snp.makeConstraints { make in
|
v.snp.makeConstraints { make in
|
||||||
make.centerX.equalToSuperview()
|
make.centerX.equalToSuperview()
|
||||||
make.top.equalTo(voiceWaveContainer.snp.bottom).offset(5)
|
make.top.equalTo(voiceWaveContainer.snp.bottom).offset(0)
|
||||||
}
|
}
|
||||||
return v
|
return v
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue