diff --git a/Coinone-iOS/Coinone-iOS.xcodeproj/project.pbxproj b/Coinone-iOS/Coinone-iOS.xcodeproj/project.pbxproj index ad1771b..9181bd5 100644 --- a/Coinone-iOS/Coinone-iOS.xcodeproj/project.pbxproj +++ b/Coinone-iOS/Coinone-iOS.xcodeproj/project.pbxproj @@ -11,6 +11,15 @@ 922E2322264FB40300F8ADA7 /* GeoraesoVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 922E2321264FB40300F8ADA7 /* GeoraesoVC.swift */; }; 92C9EE8F2650314C00E73641 /* StockTVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92C9EE8E2650314C00E73641 /* StockTVC.swift */; }; 92C9EE962650609300E73641 /* StockModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92C9EE952650609300E73641 /* StockModel.swift */; }; + CC272E5B26517E6000637BCE /* TabbarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC272E5A26517E6000637BCE /* TabbarViewController.swift */; }; + CC272E6226517F0500637BCE /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC272E6126517F0500637BCE /* HomeViewController.swift */; }; + CC272E6526517F1000637BCE /* TransactionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC272E6426517F1000637BCE /* TransactionViewController.swift */; }; + CC272E6E2651872400637BCE /* NotoSansKR-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = CC272E682651872300637BCE /* NotoSansKR-Regular.otf */; }; + CC272E6F2651872400637BCE /* NotoSansKR-Thin.otf in Resources */ = {isa = PBXBuildFile; fileRef = CC272E692651872300637BCE /* NotoSansKR-Thin.otf */; }; + CC272E702651872400637BCE /* NotoSansKR-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = CC272E6A2651872300637BCE /* NotoSansKR-Medium.otf */; }; + CC272E712651872400637BCE /* NotoSansKR-Light.otf in Resources */ = {isa = PBXBuildFile; fileRef = CC272E6B2651872400637BCE /* NotoSansKR-Light.otf */; }; + CC272E722651872400637BCE /* NotoSansKR-Black.otf in Resources */ = {isa = PBXBuildFile; fileRef = CC272E6C2651872400637BCE /* NotoSansKR-Black.otf */; }; + CC272E732651872400637BCE /* NotoSansKR-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = CC272E6D2651872400637BCE /* NotoSansKR-Bold.otf */; }; CCA0ECC6264FA7A4001CC563 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA0ECC5264FA7A4001CC563 /* AppDelegate.swift */; }; CCA0ECC8264FA7A4001CC563 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA0ECC7264FA7A4001CC563 /* SceneDelegate.swift */; }; CCA0ECCD264FA7A4001CC563 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CCA0ECCB264FA7A4001CC563 /* Main.storyboard */; }; @@ -32,6 +41,15 @@ 922E2321264FB40300F8ADA7 /* GeoraesoVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeoraesoVC.swift; sourceTree = ""; }; 92C9EE8E2650314C00E73641 /* StockTVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = StockTVC.swift; path = "Coinone-iOS/Source/Cells/StockTVC.swift"; sourceTree = SOURCE_ROOT; }; 92C9EE952650609300E73641 /* StockModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StockModel.swift; sourceTree = ""; }; + CC272E5A26517E6000637BCE /* TabbarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabbarViewController.swift; sourceTree = ""; }; + CC272E6126517F0500637BCE /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = ""; }; + CC272E6426517F1000637BCE /* TransactionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionViewController.swift; sourceTree = ""; }; + CC272E682651872300637BCE /* NotoSansKR-Regular.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSansKR-Regular.otf"; sourceTree = ""; }; + CC272E692651872300637BCE /* NotoSansKR-Thin.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSansKR-Thin.otf"; sourceTree = ""; }; + CC272E6A2651872300637BCE /* NotoSansKR-Medium.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSansKR-Medium.otf"; sourceTree = ""; }; + CC272E6B2651872400637BCE /* NotoSansKR-Light.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSansKR-Light.otf"; sourceTree = ""; }; + CC272E6C2651872400637BCE /* NotoSansKR-Black.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSansKR-Black.otf"; sourceTree = ""; }; + CC272E6D2651872400637BCE /* NotoSansKR-Bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "NotoSansKR-Bold.otf"; sourceTree = ""; }; CCA0ECC2264FA7A4001CC563 /* Coinone-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Coinone-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; CCA0ECC5264FA7A4001CC563 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; CCA0ECC7264FA7A4001CC563 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; @@ -94,6 +112,17 @@ 92C9EE952650609300E73641 /* StockModel.swift */, ); path = Models; + CC272E672651871300637BCE /* Font */ = { + isa = PBXGroup; + children = ( + CC272E6C2651872400637BCE /* NotoSansKR-Black.otf */, + CC272E6D2651872400637BCE /* NotoSansKR-Bold.otf */, + CC272E6B2651872400637BCE /* NotoSansKR-Light.otf */, + CC272E6A2651872300637BCE /* NotoSansKR-Medium.otf */, + CC272E682651872300637BCE /* NotoSansKR-Regular.otf */, + CC272E692651872300637BCE /* NotoSansKR-Thin.otf */, + ); + path = Font; sourceTree = ""; }; CCA0ECB9264FA7A4001CC563 = { @@ -127,6 +156,7 @@ CCAA9A1D264FAA2A008E50BF /* Resource */ = { isa = PBXGroup; children = ( + CC272E672651871300637BCE /* Font */, CCA0ECC5264FA7A4001CC563 /* AppDelegate.swift */, CCA0ECC7264FA7A4001CC563 /* SceneDelegate.swift */, CCAA9A29264FACC9008E50BF /* Extensions */, @@ -137,6 +167,17 @@ path = Resource; sourceTree = ""; }; + + CCAA9A1E264FAA6C008E50BF /* ViewControllers */ = { + isa = PBXGroup; + children = ( + CC272E5A26517E6000637BCE /* TabbarViewController.swift */, + CC272E6126517F0500637BCE /* HomeViewController.swift */, + CC272E6426517F1000637BCE /* TransactionViewController.swift */, + ); + path = ViewControllers; + sourceTree = ""; + }; CCAA9A1F264FAA7B008E50BF /* Storyboards */ = { isa = PBXGroup; children = ( @@ -243,11 +284,17 @@ buildActionMask = 2147483647; files = ( CCAA9A27264FABB0008E50BF /* My.storyboard in Resources */, + CC272E722651872400637BCE /* NotoSansKR-Black.otf in Resources */, CCA0ECD2264FA7A6001CC563 /* LaunchScreen.storyboard in Resources */, CCA0ECCF264FA7A6001CC563 /* Assets.xcassets in Resources */, + CC272E702651872400637BCE /* NotoSansKR-Medium.otf in Resources */, CCA0ECCD264FA7A4001CC563 /* Main.storyboard in Resources */, + CC272E6F2651872400637BCE /* NotoSansKR-Thin.otf in Resources */, + CC272E712651872400637BCE /* NotoSansKR-Light.otf in Resources */, CCAA9A21264FAB8A008E50BF /* Georaeso.storyboard in Resources */, CCAA9A24264FAB95008E50BF /* Popup.storyboard in Resources */, + CC272E732651872400637BCE /* NotoSansKR-Bold.otf in Resources */, + CC272E6E2651872400637BCE /* NotoSansKR-Regular.otf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -304,10 +351,13 @@ CCAA9A2B264FACDD008E50BF /* UIColor+.swift in Sources */, 92C9EE962650609300E73641 /* StockModel.swift in Sources */, 922E2322264FB40300F8ADA7 /* GeoraesoVC.swift in Sources */, + CC272E5B26517E6000637BCE /* TabbarViewController.swift in Sources */, CCA0ECC6264FA7A4001CC563 /* AppDelegate.swift in Sources */, 92C9EE8F2650314C00E73641 /* StockTVC.swift in Sources */, CCAA9A2E264FAEB9008E50BF /* CALayer+.swift in Sources */, + CC272E6226517F0500637BCE /* HomeViewController.swift in Sources */, CCA0ECC8264FA7A4001CC563 /* SceneDelegate.swift in Sources */, + CC272E6526517F1000637BCE /* TransactionViewController.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/Contents.json b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/Contents.json new file mode 100644 index 0000000..dbe7ee6 --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "coinIcon.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "coinIcon@2x.png" + }, + { + "scale" : "3x", + "filename" : "coinIcon@3x.png", + "idiom" : "universal" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon.png new file mode 100644 index 0000000..a3a5276 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon@2x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon@2x.png new file mode 100644 index 0000000..d44eb25 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon@2x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon@3x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon@3x.png new file mode 100644 index 0000000..48d5c44 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/coinIcon.imageset/coinIcon@3x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/Contents.json b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/Contents.json new file mode 100644 index 0000000..4ad8798 --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "scale" : "1x", + "idiom" : "universal", + "filename" : "graph.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "graph@2x.png" + }, + { + "filename" : "graph@3x.png", + "scale" : "3x", + "idiom" : "universal" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph.png new file mode 100644 index 0000000..485ed72 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph@2x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph@2x.png new file mode 100644 index 0000000..daf0bed Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph@2x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph@3x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph@3x.png new file mode 100644 index 0000000..53efc92 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/graph.imageset/graph@3x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/Contents.json b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/Contents.json new file mode 100644 index 0000000..bfaa034 --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "searchIcon.png", + "scale" : "1x" + }, + { + "scale" : "2x", + "idiom" : "universal", + "filename" : "searchIcon@2x.png" + }, + { + "filename" : "searchIcon@3x.png", + "scale" : "3x", + "idiom" : "universal" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon.png new file mode 100644 index 0000000..b13842f Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon@2x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon@2x.png new file mode 100644 index 0000000..25c3cfe Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon@2x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon@3x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon@3x.png new file mode 100644 index 0000000..0debd03 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/searchIcon.imageset/searchIcon@3x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/Contents.json b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/Contents.json new file mode 100644 index 0000000..f40e5f2 --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "scale" : "1x", + "idiom" : "universal", + "filename" : "titleImage.png" + }, + { + "scale" : "2x", + "idiom" : "universal", + "filename" : "titleImage@2x.png" + }, + { + "filename" : "titleImage@3x.png", + "scale" : "3x", + "idiom" : "universal" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage.png new file mode 100644 index 0000000..7e46508 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage@2x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage@2x.png new file mode 100644 index 0000000..ca99612 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage@2x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage@3x.png b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage@3x.png new file mode 100644 index 0000000..388fb22 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Assets.xcassets/titleImage.imageset/titleImage@3x.png differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Black.otf b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Black.otf new file mode 100644 index 0000000..0cfa4bb Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Black.otf differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Bold.otf b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Bold.otf new file mode 100644 index 0000000..7f4131c Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Bold.otf differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Light.otf b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Light.otf new file mode 100644 index 0000000..03f948c Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Light.otf differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Medium.otf b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Medium.otf new file mode 100644 index 0000000..d8cacce Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Medium.otf differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Regular.otf b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Regular.otf new file mode 100644 index 0000000..e26c1cd Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Regular.otf differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Thin.otf b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Thin.otf new file mode 100644 index 0000000..6bc00c4 Binary files /dev/null and b/Coinone-iOS/Coinone-iOS/Resource/Font/NotoSansKR-Thin.otf differ diff --git a/Coinone-iOS/Coinone-iOS/Resource/Info.plist b/Coinone-iOS/Coinone-iOS/Resource/Info.plist index b2ac170..41b75c1 100644 --- a/Coinone-iOS/Coinone-iOS/Resource/Info.plist +++ b/Coinone-iOS/Coinone-iOS/Resource/Info.plist @@ -2,6 +2,15 @@ + UIAppFonts + + NotoSansKR-Black.otf + NotoSansKR-Bold.otf + NotoSansKR-Light.otf + NotoSansKR-Medium.otf + NotoSansKR-Regular.otf + NotoSansKR-Thin.otf + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable diff --git a/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Base.lproj/Main.storyboard b/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Base.lproj/Main.storyboard index 3906b64..ef6e58c 100644 --- a/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Base.lproj/Main.storyboard +++ b/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Base.lproj/Main.storyboard @@ -7,6 +7,11 @@ + + + NotoSansKR-Regular + + @@ -15,13 +20,22 @@ + + + - + diff --git a/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Popup.storyboard b/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Popup.storyboard index f9a048e..195644f 100644 --- a/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Popup.storyboard +++ b/Coinone-iOS/Coinone-iOS/Resource/Storyboards/Popup.storyboard @@ -1,7 +1,8 @@ - - + + + - + diff --git a/Coinone-iOS/Coinone-iOS/Source/ViewControllers/HomeViewController.swift b/Coinone-iOS/Coinone-iOS/Source/ViewControllers/HomeViewController.swift new file mode 100644 index 0000000..680b72f --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Source/ViewControllers/HomeViewController.swift @@ -0,0 +1,29 @@ +// +// HomeViewController.swift +// Coinone-iOS +// +// Created by 노한솔 on 2021/05/17. +// + +import UIKit + +class HomeViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/Coinone-iOS/Coinone-iOS/Source/ViewControllers/TabbarViewController.swift b/Coinone-iOS/Coinone-iOS/Source/ViewControllers/TabbarViewController.swift new file mode 100644 index 0000000..6c7495e --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Source/ViewControllers/TabbarViewController.swift @@ -0,0 +1,53 @@ +// +// TabbarViewController.swift +// Coinone-iOS +// +// Created by 노한솔 on 2021/05/17. +// + +import Foundation +import UIKit + +class TabbarViewContorller: UITabBarController { + var defaultIndex = 0 { + didSet { + self.selectedIndex = defaultIndex + } + } + override func viewDidLoad() { + super.viewDidLoad() + self.view.backgroundColor = .clear + self.selectedIndex = defaultIndex + self.tabBar.layer.borderWidth = 0.6 +// self.tabBar.layer.borderColor = lineColor.cgColor + } + +} + +extension TabbarViewContorller { + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + let firstTabController = HomeViewController() + let secondTabController = TransactionViewController() + let viewControllers = [firstTabController, secondTabController] + self.setViewControllers(viewControllers, animated: true) + + let tabBar: UITabBar = self.tabBar + tabBar.backgroundColor = UIColor.clear + tabBar.barStyle = UIBarStyle.default + tabBar.barTintColor = UIColor.white + + let imageNames = ["tabHomeInact", "tabSearchInact", "tabCommunityInact", "tabMyInact"] + let imageSelectedNames = ["tabHomeAct", "tabSearchAct", "tabCommunityAct", "tabMyAct"] + + for (ind, value) in (tabBar.items?.enumerated())! { + let tabBarItem: UITabBarItem = value as UITabBarItem + tabBarItem.title = nil + tabBarItem.image = UIImage(named: imageNames[ind])?.withRenderingMode(.alwaysOriginal) + tabBarItem.selectedImage = UIImage(named: imageSelectedNames[ind])?.withRenderingMode(.alwaysOriginal) + tabBarItem.accessibilityIdentifier = imageNames[ind] + tabBarItem.imageInsets.top = 15 + tabBarItem.imageInsets.bottom = -15 + } + } +} diff --git a/Coinone-iOS/Coinone-iOS/Source/ViewControllers/TransactionViewController.swift b/Coinone-iOS/Coinone-iOS/Source/ViewControllers/TransactionViewController.swift new file mode 100644 index 0000000..b079e8d --- /dev/null +++ b/Coinone-iOS/Coinone-iOS/Source/ViewControllers/TransactionViewController.swift @@ -0,0 +1,29 @@ +// +// TransactionViewController.swift +// Coinone-iOS +// +// Created by 노한솔 on 2021/05/17. +// + +import UIKit + +class TransactionViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +}