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

🎨 기본 뷰 구현 완료 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

🎨 기본 뷰 구현 완료 #3

wants to merge 1 commit into from

Conversation

hansolnoh95
Copy link
Contributor

#2

Summary

카드뷰 셀 세팅
스크롤 뷰 배열 정리

Sth Coming Newly

뭔가,,, 변수 선언할때 안먹는 것들이 LayoutSpec에서 children 선언할때 styled {} 블록 안에 쓰면 작동해요,,,
대체 왜져,,,?

Challenges

preferredSize가 안먹어서 계속 애먹었는데 LayoutSpec에 쓰니까 되더라구요,,,?
이걸로만 정말 오래 고민했는데,,,,,,

References

Copy link
Collaborator

@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 168 to 170
priceLabelNode.style.spacingAfter = 13
barcodeImageNode.style.spacingAfter = 6
cardNumberTextNode.style.spacingAfter = 8
Copy link
Collaborator

Choose a reason for hiding this comment

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

오 이 방법 신기하다.

},
bannerButton.styled {
$0.preferredSize = CGSize(width: UIScreen.main.bounds.width, height: 85)
$0.spacingAfter = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

나는 왜 이게 안먹힐까요 .. . .?
뭘 잘못한걸까

cardCollectionNode.style.spacingAfter = 28
bannerButton.style.spacingAfter = 20
bannerButton.style.spacingAfter = 50
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거랑 밑에 있는

bannerButton.styled {
    $0.spacingAfter = 0
}

이거랑 차이가 있나요???

Copy link
Member

Choose a reason for hiding this comment

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

엇 그르게여 저두 이거 궁금해여

cardCollectionNode.style.spacingAfter = 28
bannerButton.style.spacingAfter = 20
bannerButton.style.spacingAfter = 50
Copy link
Member

Choose a reason for hiding this comment

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

엇 그르게여 저두 이거 궁금해여

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

Successfully merging this pull request may close these issues.

3 participants