-
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
week3-assignment #6
base: main
Are you sure you want to change the base?
Conversation
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.
μ½λκ° μ 체μ μΌλ‘ κΉλν΄μ 보기 μ’μμ΅λλ€π
func setLayout(){ | ||
collectionImageView.layer.cornerRadius = CGFloat(25) | ||
} |
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.
ν¨μ λ΄λΆμμ νλ μΌμ΄ UIComponentμ cornerκ°μ μ£Όλκ±°λΌμ, Layout보λ€λ configUIκ° λ§μ κ±° κ°μμ!
struct HomeContentData { | ||
|
||
let title: String | ||
let information: String | ||
let authorImageName: String | ||
let thumbImageName: String | ||
|
||
func makeThumbImage() -> UIImage? { | ||
return UIImage(named: thumbImageName) | ||
} | ||
|
||
func makeAuthorImage() -> UIImage? { | ||
return UIImage(named: authorImageName) | ||
} | ||
} | ||
|
||
struct HomeTopData { | ||
let name : String | ||
|
||
let iconImageName: String | ||
|
||
func makeIconImage() -> UIImage? { | ||
return UIImage(named: iconImageName) | ||
} | ||
} |
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.
κΉλνκ² μ μΌμ΄μπ
homeTableView.dataSource = self | ||
homeTableView.delegate = self | ||
homeCollectionView.dataSource = self | ||
homeCollectionView.delegate = self | ||
tagCollectionView.dataSource = self | ||
tagCollectionView.delegate = self |
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.
μ΄λΆλΆ λ°°μ΄λ‘ λ¬Άκ³ forEachλ‘ μ§μ ν΄μ€λ μ’μλ― μΆμ΅λλ€.
@IBOutlet weak var tagLabel: UILabel! | ||
|
||
override func awakeFromNib() { | ||
setLayout() |
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.
μ΄ λΆλΆμ super.awakeFromNib() μ΄νμ ν΄λ μλ¨Ήλμ?
func setLayout() { | ||
tagLayout.layer.cornerRadius = 17 | ||
tagLayout.layer.borderWidth = 1 | ||
tagLayout.layer.borderColor = UIColor(red: 212, green: 212, blue: 212, alpha: 1).cgColor | ||
tagLayout.layer.backgroundColor = UIColor(red: 242, green: 242, blue: 242, alpha: 1).cgColor | ||
} |
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.
μ΄ ν¨μλ μ£Όλ‘ νλ μΌμ΄ UI Configurationλ₯Ό μ‘λ μΌμ΄λΌμ ConfigUIκ° μ¬λ°λ₯Έ λ€μ΄λ°μΌ κ² κ°μμ!
π κ΄λ ¨ μ΄μ
#5
π λ³κ²½ μ¬ν λ° μ΄μ
HomeVC μ νλ©΄μ ꡬννμ΅λλ€.
TableVIew, CollectionViewλ₯Ό ꡬννλ©° μ°μ΅ν μ μμμ΅λλ€!
π PR Point
μμΈμ§ TagCollectionViewCell.xib μμ setLayout() ν¨μκ° λμμνλλ°
λΉλνλ©΄ νλ©΄μ μ μ©μ΄ μλμ΄μμ΅λλ€.. 8γ 8
π μ°Έκ³ μ¬ν
HomeVCμ μ°¨λ‘λλ‘
μ λλ€!