diff --git a/Handy/Handy-Storybook/Atom/TabsViewController.swift b/Handy/Handy-Storybook/Atom/TabsViewController.swift index f6d43b3..949807f 100644 --- a/Handy/Handy-Storybook/Atom/TabsViewController.swift +++ b/Handy/Handy-Storybook/Atom/TabsViewController.swift @@ -6,11 +6,12 @@ // import Handy +import UIKit final class TabsViewController: BaseViewController { - private let tabs: HandyTabs = { - let tabs = HandyTabs(sizeType: .small) - tabs.tabs = [ + let tabs: [(title: String, viewController: UIViewController)] + init(_ tabCount: Int) { + self.tabs = [ { let viewController = SnackbarViewController() return ("SnackbarViewController", viewController) @@ -47,17 +48,31 @@ final class TabsViewController: BaseViewController { let viewController = HansySwitchViewController() return ("HansySwitchViewController", viewController) }(), - ] + ][..