Center image (IOS-145) (#1010)
This commit is contained in:
parent
21f57d3623
commit
0b9277db37
|
@ -452,7 +452,7 @@ extension MainTabBarController {
|
|||
self.avatarButton.translatesAutoresizingMaskIntoConstraints = false
|
||||
view.addSubview(self.avatarButton)
|
||||
NSLayoutConstraint.activate([
|
||||
self.avatarButton.centerXAnchor.constraint(equalTo: anchorImageView.centerXAnchor, constant: -16),
|
||||
self.avatarButton.centerXAnchor.constraint(equalTo: anchorImageView.centerXAnchor),
|
||||
self.avatarButton.centerYAnchor.constraint(equalTo: anchorImageView.centerYAnchor),
|
||||
self.avatarButton.widthAnchor.constraint(equalToConstant: MainTabBarController.avatarButtonSize.width).priority(.required - 1),
|
||||
self.avatarButton.heightAnchor.constraint(equalToConstant: MainTabBarController.avatarButtonSize.height).priority(.required - 1),
|
||||
|
|
Loading…
Reference in New Issue