fix: profile field alignment issue
This commit is contained in:
parent
a9744146ce
commit
26b48957cd
|
@ -45,7 +45,6 @@ final class ProfileFieldAddEntryCollectionViewCell: UICollectionViewCell {
|
||||||
override func prepareForReuse() {
|
override func prepareForReuse() {
|
||||||
super.prepareForReuse()
|
super.prepareForReuse()
|
||||||
|
|
||||||
//resetStackView()
|
|
||||||
disposeBag.removeAll()
|
disposeBag.removeAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,8 +70,8 @@ extension ProfileFieldAddEntryCollectionViewCell {
|
||||||
contentView.addSubview(containerStackView)
|
contentView.addSubview(containerStackView)
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
containerStackView.topAnchor.constraint(equalTo: contentView.topAnchor),
|
containerStackView.topAnchor.constraint(equalTo: contentView.topAnchor),
|
||||||
containerStackView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
|
containerStackView.leadingAnchor.constraint(equalTo: contentView.readableContentGuide.leadingAnchor),
|
||||||
containerStackView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
|
containerStackView.trailingAnchor.constraint(equalTo: contentView.readableContentGuide.trailingAnchor),
|
||||||
containerStackView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
containerStackView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
||||||
containerStackView.heightAnchor.constraint(equalToConstant: 44).priority(.defaultHigh),
|
containerStackView.heightAnchor.constraint(equalToConstant: 44).priority(.defaultHigh),
|
||||||
])
|
])
|
||||||
|
|
|
@ -77,8 +77,8 @@ extension ProfileFieldCollectionViewCell {
|
||||||
contentView.addSubview(containerStackView)
|
contentView.addSubview(containerStackView)
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
containerStackView.topAnchor.constraint(equalTo: contentView.topAnchor),
|
containerStackView.topAnchor.constraint(equalTo: contentView.topAnchor),
|
||||||
containerStackView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor),
|
containerStackView.leadingAnchor.constraint(equalTo: contentView.readableContentGuide.leadingAnchor),
|
||||||
containerStackView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor),
|
containerStackView.trailingAnchor.constraint(equalTo: contentView.readableContentGuide.trailingAnchor),
|
||||||
containerStackView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
containerStackView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor),
|
||||||
containerStackView.heightAnchor.constraint(equalToConstant: 44).priority(.defaultHigh),
|
containerStackView.heightAnchor.constraint(equalToConstant: 44).priority(.defaultHigh),
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue