Closed MoLice closed 5 years ago
iOS 13 beta5 有变化,表现为: 如果用 iOS 12 SDK 编译: TabBarButton 内部有一个磨砂 UIVisualEffectView,但是他只用来包裹 label 也就是 tabbar item 的标题,并没有包裹 image(在 iOS 13 beta1 ~ beta4 他包裹了imageView、label) 如果用 iOS 13 SDK 编译: TabBarButton 内部没有 UIVisualEffectView,全部的 view 都在 TabBarButton 的 subview
经测试 iOS 13.1 又出现了新的变化,即使使用 iOS 13 SDK 编译,UIVisualEffectView 内部仍然可能会包裹 imageView
It causes
UIBarItem (QMUIBadge)
's layout error.The reason is that when the
UITabBar
is blurred(means it has no background image), theUIImageView
will be added to anUIVisualEffectView
, and before iOS 13, theUIImageView
is added to theUITabBarButton
directly.