fix: profile segmented controls missing margin issue
This commit is contained in:
parent
ba76fc51a1
commit
05646e6f59
|
@ -282,7 +282,7 @@ extension ProfileHeaderView {
|
|||
avatarImageViewBackgroundView.translatesAutoresizingMaskIntoConstraints = false
|
||||
addSubview(avatarImageViewBackgroundView)
|
||||
NSLayoutConstraint.activate([
|
||||
avatarImageViewBackgroundView.leadingAnchor.constraint(equalTo: bannerContainerView.readableContentGuide.leadingAnchor),
|
||||
avatarImageViewBackgroundView.leadingAnchor.constraint(equalToSystemSpacingAfter: bannerContainerView.leadingAnchor, multiplier: 2.0),
|
||||
// align to dashboardContainer bottom
|
||||
])
|
||||
|
||||
|
@ -338,8 +338,8 @@ extension ProfileHeaderView {
|
|||
addSubview(container)
|
||||
NSLayoutConstraint.activate([
|
||||
container.topAnchor.constraint(equalTo: bannerContainerView.bottomAnchor),
|
||||
container.leadingAnchor.constraint(equalTo: leadingAnchor),
|
||||
container.trailingAnchor.constraint(equalTo: trailingAnchor),
|
||||
container.leadingAnchor.constraint(equalToSystemSpacingAfter: leadingAnchor, multiplier: 2.0),
|
||||
trailingAnchor.constraint(equalToSystemSpacingAfter: container.trailingAnchor, multiplier: 2.0),
|
||||
container.bottomAnchor.constraint(equalTo: bottomAnchor),
|
||||
])
|
||||
|
||||
|
|
|
@ -279,7 +279,7 @@ extension ProfileViewController {
|
|||
self.profileHeaderViewController.view.addSubview(buttonBar)
|
||||
NSLayoutConstraint.activate([
|
||||
buttonBar.topAnchor.constraint(equalTo: self.profileHeaderViewController.profileHeaderView.bottomAnchor),
|
||||
buttonBar.leadingAnchor.constraint(equalTo: self.profileHeaderViewController.view.layoutMarginsGuide.leadingAnchor),
|
||||
buttonBar.leadingAnchor.constraint(equalToSystemSpacingAfter: self.profileHeaderViewController.view.leadingAnchor, multiplier: 2.0),
|
||||
buttonBar.trailingAnchor.constraint(equalTo: self.profileHeaderViewController.view.layoutMarginsGuide.trailingAnchor),
|
||||
buttonBar.bottomAnchor.constraint(equalTo: self.profileHeaderViewController.view.bottomAnchor),
|
||||
buttonBar.heightAnchor.constraint(equalToConstant: ProfileHeaderViewController.segmentedControlHeight).priority(.required - 1),
|
||||
|
|
Loading…
Reference in New Issue