From 092e1bc7487fb541a5f9f9fd841210c606faaa5f Mon Sep 17 00:00:00 2001 From: "chongin12(Mosu)" Date: Wed, 1 Jan 2025 16:26:27 +0900 Subject: [PATCH] =?UTF-8?q?[#12]=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EB=94=94?= =?UTF-8?q?=ED=85=8C=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Atom/TabsViewController.swift | 29 ++++++++++++++----- .../Storybook/MainViewController.swift | 4 ++- .../Atom/HandyTabs/HandyTabComponent.swift | 15 ++++------ .../Source/Atom/HandyTabs/HandyTabs.swift | 17 ++++++----- 4 files changed, 40 insertions(+), 25 deletions(-) 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) }(), - ] + ][..