Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

week3-assignment #6

wants to merge 9 commits into from

Conversation

seondal
Copy link
Member

@seondal seondal commented Dec 23, 2021

πŸ“Œ κ΄€λ ¨ 이슈

#5

πŸ“Œ λ³€κ²½ 사항 및 이유

HomeVC 의 화면을 κ΅¬ν˜„ν–ˆμŠ΅λ‹ˆλ‹€.
TableVIew, CollectionViewλ₯Ό κ΅¬ν˜„ν•˜λ©° μ—°μŠ΅ν•  수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€!

πŸ“Œ PR Point

μ™œμΈμ§€ TagCollectionViewCell.xib μ—μ„œ setLayout() ν•¨μˆ˜κ°€ λ™μž‘μ€ν•˜λŠ”λ°
λΉŒλ“œν•˜λ©΄ 화면에 적용이 μ•ˆλ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.. 8ㅁ8

πŸ“Œ μ°Έκ³  사항

HomeVC에 μ°¨λ‘€λŒ€λ‘œ

  • HomeCollectionView
  • TagCollectionView
  • HomeTableView

μž…λ‹ˆλ‹€!

Copy link
Member

@YoonAh-dev YoonAh-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μ½”λ“œκ°€ μ „μ²΄μ μœΌλ‘œ κΉ”λ”ν•΄μ„œ 보기 μ’‹μ•˜μŠ΅λ‹ˆλ‹€πŸ‘

Comment on lines +22 to +24
func setLayout(){
collectionImageView.layer.cornerRadius = CGFloat(25)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ν•¨μˆ˜ λ‚΄λΆ€μ—μ„œ ν•˜λŠ” 일이 UIComponent에 corner값을 μ£ΌλŠ”κ±°λΌμ„œ, Layoutλ³΄λ‹€λŠ” configUIκ°€ λ§žμ„ κ±° κ°™μ•„μš”!

Comment on lines +10 to +34
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)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

κΉ”λ”ν•˜κ²Œ 잘 μΌμ–΄μš”πŸ‘

Comment on lines +31 to +36
homeTableView.dataSource = self
homeTableView.delegate = self
homeCollectionView.dataSource = self
homeCollectionView.delegate = self
tagCollectionView.dataSource = self
tagCollectionView.delegate = self
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ν•¨μˆ˜λ‘œ λ¬Άμ–΄μ€˜λ„ 쒋을 것 κ°™λ„€μš”!

Copy link

@loinsir loinsir Dec 26, 2021

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()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 뢀뢄을 super.awakeFromNib() 이후에 해도 μ•ˆλ¨Ήλ‚˜μš”?

Comment on lines +22 to +27
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
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 ν•¨μˆ˜λ„ 주둜 ν•˜λŠ” 일이 UI Configurationλ₯Ό μž‘λŠ” μΌμ΄λΌμ„œ ConfigUIκ°€ μ˜¬λ°”λ₯Έ 넀이밍일 것 κ°™μ•„μš”!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants