|
@@ -160,7 +160,7 @@ class PQEditPublicTitleView: UIView {
|
|
|
// make.height.equalTo(542 - cAKSafeAreaHeight)
|
|
|
}
|
|
|
|
|
|
- titleCollectionView.reloadData()
|
|
|
+// titleCollectionView.reloadData()
|
|
|
}
|
|
|
|
|
|
required init?(coder _: NSCoder) {
|
|
@@ -264,6 +264,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()
|
|
|
}
|
|
|
}
|