Revert paddingView.pinToParent
This commit is contained in:
parent
9e65ccfd7e
commit
e56104c756
|
@ -83,8 +83,11 @@ final class PickServerServerSectionTableHeaderView: UIView {
|
||||||
let paddingView = UIView()
|
let paddingView = UIView()
|
||||||
paddingView.translatesAutoresizingMaskIntoConstraints = false
|
paddingView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
containerView.addSubview(paddingView)
|
containerView.addSubview(paddingView)
|
||||||
paddingView.pinToParent()
|
|
||||||
NSLayoutConstraint.activate([
|
NSLayoutConstraint.activate([
|
||||||
|
paddingView.topAnchor.constraint(equalTo: containerView.topAnchor),
|
||||||
|
paddingView.leadingAnchor.constraint(equalTo: imageView.trailingAnchor),
|
||||||
|
paddingView.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),
|
||||||
|
paddingView.bottomAnchor.constraint(equalTo: containerView.bottomAnchor),
|
||||||
paddingView.widthAnchor.constraint(equalToConstant: 4).priority(.defaultHigh),
|
paddingView.widthAnchor.constraint(equalToConstant: 4).priority(.defaultHigh),
|
||||||
])
|
])
|
||||||
return containerView
|
return containerView
|
||||||
|
|
|
@ -281,7 +281,7 @@ extension ProfileHeaderView {
|
||||||
|
|
||||||
followsYouVibrantEffectView.translatesAutoresizingMaskIntoConstraints = false
|
followsYouVibrantEffectView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
followsYouBlurEffectView.contentView.addSubview(followsYouVibrantEffectView)
|
followsYouBlurEffectView.contentView.addSubview(followsYouVibrantEffectView)
|
||||||
followsYouVibrantEffectView.pinToParent()
|
followsYouVibrantEffectView.pinTo(to: followsYouBlurEffectView)
|
||||||
|
|
||||||
followsYouLabel.translatesAutoresizingMaskIntoConstraints = false
|
followsYouLabel.translatesAutoresizingMaskIntoConstraints = false
|
||||||
followsYouVibrantEffectView.contentView.addSubview(followsYouLabel)
|
followsYouVibrantEffectView.contentView.addSubview(followsYouLabel)
|
||||||
|
|
Loading…
Reference in New Issue