fix: acctLabel display beyound card
This commit is contained in:
parent
cc4290385d
commit
c1971438cd
|
@ -41,6 +41,7 @@ class SearchRecommendAccountsCollectionViewCell: UICollectionViewCell {
|
||||||
let label = UILabel()
|
let label = UILabel()
|
||||||
label.textColor = .white
|
label.textColor = .white
|
||||||
label.font = .preferredFont(forTextStyle: .body)
|
label.font = .preferredFont(forTextStyle: .body)
|
||||||
|
label.textAlignment = .center
|
||||||
label.translatesAutoresizingMaskIntoConstraints = false
|
label.translatesAutoresizingMaskIntoConstraints = false
|
||||||
return label
|
return label
|
||||||
}()
|
}()
|
||||||
|
@ -105,6 +106,8 @@ extension SearchRecommendAccountsCollectionViewCell {
|
||||||
contentView.addSubview(acctLabel)
|
contentView.addSubview(acctLabel)
|
||||||
acctLabel.constrain([
|
acctLabel.constrain([
|
||||||
acctLabel.constraint(.top, toView: contentView, constant: 132),
|
acctLabel.constraint(.top, toView: contentView, constant: 132),
|
||||||
|
acctLabel.constraint(.leading, toView: contentView),
|
||||||
|
acctLabel.constraint(.trailing, toView: contentView),
|
||||||
acctLabel.constraint(.centerX, toView: contentView)
|
acctLabel.constraint(.centerX, toView: contentView)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue