-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
홈 화면의 Tabbar를 정의해 보았습니다. #10
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
20cd42f
Feat: MainTabbar 정의
GeonH0 5cd2dd9
Fix: size 정의후 cornerRadius 선언 수정
GeonH0 eaa4f9c
Fix: 타이틀 폰트 사이즈 조절
GeonH0 087f6e1
Fix: guard문 수정
GeonH0 d76a2a2
Feat: addButton CGSize extension 정의
GeonH0 fc347c4
Fix: 버튼 사이즈 적용 및 버튼 size 네이밍 수정
GeonH0 3611d8b
Fix: Deafault 제거 후 Impl로 네이밍 변경
GeonH0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,7 +10,8 @@ import UIKit | |
class MainTabBarController: UITabBarController, UITabBarControllerDelegate { | ||
|
||
private let addButton = UIButton(type: .custom) | ||
|
||
private let buttonSize: CGFloat = 64 | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
self.delegate = self | ||
|
@@ -23,7 +24,7 @@ class MainTabBarController: UITabBarController, UITabBarControllerDelegate { | |
addButton.backgroundColor = .blue | ||
addButton.setTitle("+", for: .normal) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 타이틀 폰트 더 키울 수 있나요~? 스크린샷보니 좀 작아보여서요! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [eaa4f9c] 수정했습니다 |
||
addButton.setTitleColor(.white, for: .normal) | ||
addButton.layer.cornerRadius = 32 | ||
addButton.layer.cornerRadius = buttonSize * 0.5 | ||
addButton.layer.shadowColor = UIColor.black.cgColor | ||
addButton.layer.shadowOpacity = 0.3 | ||
addButton.layer.shadowOffset = CGSize(width: 0, height: 2) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size 네이밍에 맞춰서 부탁드리고, 버튼에 사이즈 넣어줄 때도 이 값을 사용하도록 수정부탁드려요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5cd2dd9#diff-0d224758abc4ca45fc0282291d15c94cd69c91925cdfce32dd267ad65326baa0R61-R62 이부분이요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[d76a2a2],[fc347c4]
적용했습니다!