Commit f41f5ff0 authored by Steven杜宇's avatar Steven杜宇

// AI

parent 74fe5f06
...@@ -25,7 +25,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate { ...@@ -25,7 +25,7 @@ class YHAutoTextView: UITextView, UITextViewDelegate {
var realHeight = self.calculateHeight var realHeight = self.calculateHeight
if self.calculateHeight > maxHeight { if self.calculateHeight > maxHeight {
height = maxHeight realHeight = maxHeight
self.snp.updateConstraints { make in self.snp.updateConstraints { make in
make.top.equalTo(11) make.top.equalTo(11)
make.height.equalTo(realHeight) make.height.equalTo(realHeight)
......
...@@ -21,14 +21,14 @@ class YHAIChatBannerItemCell: FSPagerViewCell { ...@@ -21,14 +21,14 @@ class YHAIChatBannerItemCell: FSPagerViewCell {
static let cellReuseIdentifier = "YHAIChatBannerItemCell" static let cellReuseIdentifier = "YHAIChatBannerItemCell"
lazy var effectView:VisualEffectView = { // lazy var effectView:VisualEffectView = {
let visualEffectView = VisualEffectView() // let visualEffectView = VisualEffectView()
visualEffectView.colorTint = UIColor(hex: 0xAFAFAF).withAlphaComponent(0.15) // visualEffectView.colorTint = UIColor(hex: 0xAFAFAF).withAlphaComponent(0.15)
visualEffectView.blurRadius = 16 // visualEffectView.blurRadius = 16
visualEffectView.scale = 1 // visualEffectView.scale = 1
visualEffectView.isHidden = true // visualEffectView.isHidden = true
return visualEffectView // return visualEffectView
}() // }()
lazy var titleLabel: UILabel = { lazy var titleLabel: UILabel = {
let lable = UILabel() let lable = UILabel()
...@@ -62,11 +62,11 @@ class YHAIChatBannerItemCell: FSPagerViewCell { ...@@ -62,11 +62,11 @@ class YHAIChatBannerItemCell: FSPagerViewCell {
contentView.layer.shadowOpacity = 0 contentView.layer.shadowOpacity = 0
contentView.layer.shadowOffset = .zero contentView.layer.shadowOffset = .zero
contentView.addSubview(effectView) // contentView.addSubview(effectView)
effectView.snp.makeConstraints { make in // effectView.snp.makeConstraints { make in
make.bottom.left.right.equalToSuperview() // make.bottom.left.right.equalToSuperview()
make.height.equalTo(95) // make.height.equalTo(95)
} // }
contentView.addSubview(subtitleLabel) contentView.addSubview(subtitleLabel)
subtitleLabel.snp.makeConstraints { make in subtitleLabel.snp.makeConstraints { make in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment