Here is a mini project that shows the bug (BETA 3).
https://file.io/fkrDXwYfgyAs
Screenshot:
class RotatingTabBarControllerSwift: UITabBarController {
private var myAppDel = AppDelegate()
// MARK: - Methoden
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
self.updateTabBarItems()
}
// MARK: - Helper Methoden
func updateTabBarItems() {
if let items = self.tabBar.items {
print("# UPDATED")
let symbolConfig = UIImage.SymbolConfiguration(weight: .light)
items[0].image = UIImage(systemName: "house.fill", withConfiguration: symbolConfig)
items[1].image = UIImage(systemName: "person.fill", withConfiguration: symbolConfig)
items[0].title = "Code 1"
items[1].title = "Code 2"
self.tabs[0].title = "Code 3"
self.tabs[1].title = "Code 4"
// Tabbar in compact style still shows "Storyboard 1" and "Plus" image ... it should show "Code 1" (or even better "Code 3") and a "House" image
}
}
}
Topic:
UI Frameworks
SubTopic:
UIKit