|
@@ -159,7 +159,7 @@ class PQEditPublicTitleView: UIView {
|
|
|
make.top.equalTo(inputBgView.snp_bottom).offset(10)
|
|
|
}
|
|
|
|
|
|
- titleCollectionView.reloadData()
|
|
|
+// titleCollectionView.reloadData()
|
|
|
}
|
|
|
|
|
|
required init?(coder _: NSCoder) {
|
|
@@ -263,6 +263,14 @@ class PQEditPublicTitleViewContentCell: UICollectionViewCell {
|
|
|
var titleStr: String? {
|
|
|
didSet {
|
|
|
titleLab.text = titleStr
|
|
|
+
|
|
|
+ if(titleLab.text?.count ?? 0 == 0){
|
|
|
+ lineView.backgroundColor = .white
|
|
|
+ iconView.isHidden = true
|
|
|
+ }else{
|
|
|
+ lineView.backgroundColor = UIColor.hexColor(hexadecimal: "#EFEFEF")
|
|
|
+ iconView.isHidden = false
|
|
|
+ }
|
|
|
addLayout()
|
|
|
}
|
|
|
}
|