The following:
tabBarController.tabs = [
UITab(title: "First",
image: UIImage(...),
identifier: "First Tab") { _ in
myViewController()
}
Works as expected. Tap on a a tab or sidebar item, and myViewController appears.
However, the following:
let collectionsGroup = UITabGroup(
title: "Lists",
image: nil,
identifier: "Tabs.CollectionsGroup",
children: [
UITab(title: "First", image: nil, identifier: "First Tab") { _ in
myViewController()
}
]) { _ in
fallbackViewController()
}
Does not work as expected. Tapping on any tab in the sidebar always displays fallbackViewController, instead of myViewController or any other specified view controllers in the given tab.
Am I doing something wrong, or is this a bug with the current betas?
Topic:
UI Frameworks
SubTopic:
UIKit