chore: update avatar icon UI

This commit is contained in:
CMK 2021-09-16 11:41:56 +08:00
parent 1d554a3d9e
commit 76efa7162e
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ extension MainTabBarController {
view.addSubview(self.avatarButton)
NSLayoutConstraint.activate([
self.avatarButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
self.avatarButton.centerYAnchor.constraint(equalTo: anchorImageView.centerYAnchor),
self.avatarButton.centerYAnchor.constraint(equalTo: anchorImageView.centerYAnchor, constant: 1), // 1pt offset
self.avatarButton.widthAnchor.constraint(equalToConstant: MainTabBarController.avatarButtonSize.width).priority(.required - 1),
self.avatarButton.heightAnchor.constraint(equalToConstant: MainTabBarController.avatarButtonSize.height).priority(.required - 1),
])