Setup listener for tab response

This commit is contained in:
Pfeil, Scott Robert 2020-06-01 15:06:42 -04:00
parent 5227f53776
commit e8d74bf0a5

View File

@ -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
}
}