Revert paddingView.pinToParent

This commit is contained in:
Stefan Painhapp 2022-11-18 02:07:33 +09:00
parent 9e65ccfd7e
commit e56104c756
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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)