-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
413 additions
and
1 deletion.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
Handy/Handy-Storybook/Component/HandyTabBarViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.