Skip to content

Commit

Permalink
[#12] HandyTabBar 파일 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
OhDG committed Sep 7, 2024
1 parent ef7c031 commit d9093c6
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 1 deletion.
68 changes: 68 additions & 0 deletions Handy/Handy-Storybook/Component/HandyTabBarViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
//
// HandyTabBarViewController.swift
// Handy-Storybook
//
// Created by 오동규 on 7/30/24.
//

import Handy

final class HandyTabBarViewController: BaseViewController {

let view12: HandyTabBar = HandyTabBar()

let D1Sb56Label: HandyLabel = {
let label = HandyLabel(style: .D1Sb56)
label.text = "Handy \nHello, World!"
label.textColor = .black
label.textAlignment = .left
label.numberOfLines = 0
label.lineBreakMode = .byWordWrapping
return label
}()

let H1Rg32Label: HandyLabel = {
let label = HandyLabel(style: .H1Rg32)
label.text = "Handy \nHello, World!"
label.textColor = .black
label.textAlignment = .left
label.numberOfLines = 0
label.lineBreakMode = .byWordWrapping
return label
}()

let T2Lt18Label: HandyLabel = {
let label = HandyLabel(style: .T2Lt18)
label.text = "Handy \nHello, World!"
label.textColor = .black
label.textAlignment = .left
label.numberOfLines = 0
label.lineBreakMode = .byWordWrapping
return label
}()

override func viewDidLoad() {
super.viewDidLoad()
}

override func setViewHierarchies() {
self.view.addSubview(D1Sb56Label)
}

override func setViewLayouts() {
D1Sb56Label.snp.makeConstraints {
$0.top.equalToSuperview().inset(100)
$0.leading.equalToSuperview().inset(20)
}
H1Rg32Label.snp.makeConstraints {
$0.top.equalTo(D1Sb56Label.snp.bottom).offset(100)
$0.leading.equalToSuperview().inset(20)
}
T2Lt18Label.snp.makeConstraints {
$0.top.equalTo(H1Rg32Label.snp.bottom).offset(100)
$0.leading.equalToSuperview().inset(20)
}
}
}


3 changes: 2 additions & 1 deletion Handy/Handy-Storybook/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import UIKit
import Handy

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

Expand All @@ -16,7 +17,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: UIScreen.main.bounds)
window?.windowScene = windowScene
window?.rootViewController = LabelViewController()
window?.rootViewController = HandyTabBar()
window?.makeKeyAndVisible()
}

Expand Down
26 changes: 26 additions & 0 deletions Handy/Handy.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
029E48002C49FD4000D2F3B7 /* HandyTypography.swift in Sources */ = {isa = PBXBuildFile; fileRef = 029E47FF2C49FD4000D2F3B7 /* HandyTypography.swift */; };
02BDB7F32C3E95580050FB67 /* Handy.h in Headers */ = {isa = PBXBuildFile; fileRef = 02BDB7F22C3E95580050FB67 /* Handy.h */; settings = {ATTRIBUTES = (Public, ); }; };
02BDB7FC2C3E99920050FB67 /* HandyFont.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02BDB7FB2C3E99920050FB67 /* HandyFont.swift */; };
6C3F49362C58E0BA000A8F90 /* HandyTabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C3F49352C58E0BA000A8F90 /* HandyTabBar.swift */; };
6C3F49392C58E28F000A8F90 /* HandyTabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C3F49382C58E28F000A8F90 /* HandyTabBarViewController.swift */; };
6C3F493A2C58E3BE000A8F90 /* HandyBasicColor.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E5669A422C443FE500DABC21 /* HandyBasicColor.xcassets */; };
E5669A3F2C443E7300DABC21 /* HandyBasicColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5669A3E2C443E7300DABC21 /* HandyBasicColor.swift */; };
E5D02AFD2C46C5A70056CE7B /* HandySematicColor.swift in Sources */ = {isa = PBXBuildFile; fileRef = E5D02AFC2C46C5A70056CE7B /* HandySematicColor.swift */; };
E5D02AFE2C46C9980056CE7B /* HandyBasicColor.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E5669A422C443FE500DABC21 /* HandyBasicColor.xcassets */; };
Expand Down Expand Up @@ -77,6 +80,8 @@
02BDB7EF2C3E95580050FB67 /* Handy.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Handy.framework; sourceTree = BUILT_PRODUCTS_DIR; };
02BDB7F22C3E95580050FB67 /* Handy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Handy.h; sourceTree = "<group>"; };
02BDB7FB2C3E99920050FB67 /* HandyFont.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandyFont.swift; sourceTree = "<group>"; };
6C3F49352C58E0BA000A8F90 /* HandyTabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandyTabBar.swift; sourceTree = "<group>"; };
6C3F49382C58E28F000A8F90 /* HandyTabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandyTabBarViewController.swift; sourceTree = "<group>"; };
E5669A3E2C443E7300DABC21 /* HandyBasicColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandyBasicColor.swift; sourceTree = "<group>"; };
E5669A422C443FE500DABC21 /* HandyBasicColor.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = HandyBasicColor.xcassets; sourceTree = "<group>"; };
E5D02AFC2C46C5A70056CE7B /* HandySematicColor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HandySematicColor.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -106,6 +111,7 @@
025776332C4EA98C00272EC6 /* Handy-Storybook */ = {
isa = PBXGroup;
children = (
6C3F49372C58E26A000A8F90 /* Component */,
025776482C4EB0E700272EC6 /* Atom */,
025776572C4EB7C700272EC6 /* Font */,
0257765A2C4EB9B800272EC6 /* Storybook */,
Expand Down Expand Up @@ -209,6 +215,7 @@
02BDB7F92C3E962D0050FB67 /* Source */ = {
isa = PBXGroup;
children = (
6C3F49322C58DFD5000A8F90 /* Component */,
029C446B2C468F8E00331F61 /* Font */,
029E47FE2C49FD2E00D2F3B7 /* Atom */,
02BDB7FA2C3E964A0050FB67 /* Foundation */,
Expand All @@ -229,6 +236,22 @@
path = Foundation;
sourceTree = "<group>";
};
6C3F49322C58DFD5000A8F90 /* Component */ = {
isa = PBXGroup;
children = (
6C3F49352C58E0BA000A8F90 /* HandyTabBar.swift */,
);
path = Component;
sourceTree = "<group>";
};
6C3F49372C58E26A000A8F90 /* Component */ = {
isa = PBXGroup;
children = (
6C3F49382C58E28F000A8F90 /* HandyTabBarViewController.swift */,
);
path = Component;
sourceTree = "<group>";
};
E5650D412C4D30B9002790CC /* Asset */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -338,6 +361,7 @@
buildActionMask = 2147483647;
files = (
025776412C4EA98E00272EC6 /* LaunchScreen.storyboard in Resources */,
6C3F493A2C58E3BE000A8F90 /* HandyBasicColor.xcassets in Resources */,
025776562C4EB7BB00272EC6 /* Pretendard-SemiBold.otf in Resources */,
025776542C4EB7BB00272EC6 /* Pretendard-Regular.otf in Resources */,
025776592C4EB8BC00272EC6 /* Pretendard-Light.otf in Resources */,
Expand All @@ -363,6 +387,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6C3F49392C58E28F000A8F90 /* HandyTabBarViewController.swift in Sources */,
025776392C4EA98C00272EC6 /* LabelViewController.swift in Sources */,
0257765D2C4EB9EF00272EC6 /* BaseViewController.swift in Sources */,
025776352C4EA98C00272EC6 /* AppDelegate.swift in Sources */,
Expand All @@ -379,6 +404,7 @@
E5669A3F2C443E7300DABC21 /* HandyBasicColor.swift in Sources */,
02BDB7FC2C3E99920050FB67 /* HandyFont.swift in Sources */,
029E48002C49FD4000D2F3B7 /* HandyTypography.swift in Sources */,
6C3F49362C58E0BA000A8F90 /* HandyTabBar.swift in Sources */,
029E47FD2C49FD1A00D2F3B7 /* HandyLabel.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Loading

0 comments on commit d9093c6

Please sign in to comment.