Setup listener for tab response
This commit is contained in:
parent
5227f53776
commit
e8d74bf0a5
@ -90,15 +90,3 @@ public class TabBarItemModel: Codable {
|
||||
try container.encodeModel(action, forKey: .action)
|
||||
}
|
||||
}
|
||||
|
||||
@objc public class TabBarHelper: NSObject {
|
||||
@objc public class func get() -> UITabBar {
|
||||
let model = TabBarModel(with: [TabBarItemModel(with: "Home", image: "Home", action: ActionOpenPageModel(pageType: "myFeed", presentationStyle: "root", tabBarIndex: 0)),
|
||||
TabBarItemModel(with: "Account", image: "Account", action: ActionOpenPageModel(pageType: "account", presentationStyle: "root", tabBarIndex: 1)),
|
||||
TabBarItemModel(with: "Shop", image: "Bag", action: ActionOpenPageModel(pageType: "shop", presentationStyle: "root", tabBarIndex: 2)),
|
||||
TabBarItemModel(with: "Verizon Up", image: "Verizon Up", action: ActionOpenPageModel(pageType: "vzup", presentationStyle: "root", tabBarIndex: 3)),
|
||||
TabBarItemModel(with: "More", image: "More", action: ActionOpenPageModel(pageType: "more", presentationStyle: "root", tabBarIndex: 4))])
|
||||
let tabBar = TabBar(model: model, nil, nil)
|
||||
return tabBar
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user