Fix tabbar avatar not visible (IOS-176)

This commit is contained in:
Marcus Kida 2023-11-27 14:19:17 +01:00
parent cc3f1d030f
commit 831665141c
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 117 additions and 115 deletions

View File

@ -190,7 +190,7 @@ extension MainTabBarController {
_viewControllers = viewControllers
setViewControllers(viewControllers, animated: false)
selectedIndex = 0
}
// hacky workaround for FB11986255 (Setting accessibilityUserInputLabels on a UITabBarItem has no effect)
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(50)) {
@ -261,6 +261,7 @@ extension MainTabBarController {
placeholder: .placeholder(color: .systemFill),
scaleToSize: MainTabBarController.avatarButtonSize
)
// self.avatarButton.avatarImageView.image = UIImage(named: "AppIcon")
}
.store(in: &disposeBag)
@ -316,6 +317,7 @@ extension MainTabBarController {
updateTabBarDisplay()
}
}
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)