상세 컨텐츠

본문 제목

Day 22. Project 2, part 3

TIL/#100DaysOfSwiftUI

by box-jeon 2020. 3. 8. 00:08

본문

https://www.hackingwithswift.com/100/swiftui/22

 

100 Days of SwiftUI – Day 22 – Hacking with Swift

Project 2, part 3 In this project you’ve learned about images, stacks, gradients, buttons, and more, along with a whole host of new modifiers to help bring your UI designs to life. All of these skills will come in useful in your own SwiftUI apps – not mayb

www.hackingwithswift.com

Guess the Flag를 구현하면서 배운 것들을 퀴즈로 풀고 몇 가지 과제를 수행합니다. 20, 21일차에 계속 투덜거렸던 Alert의 present 방식에 대해서도 한번 이야기가 나옵니다.

Many people find SwiftUI’s way of showing alerts a little odd at first: creating it, adding a condition, then simply triggering that condition at some point in the future seems like a lot more work than just asking the alert to show itself. But like I said, it’s important that our views always be a reflection of our program state, and that rules out us just showing alerts whenever we want to.

그렇다고 하니 그런가보다 하고 받아들여야할 것 같습니다. 'our views always be a reflection fo our program state'란 표현이 너무 근사하네요.

 

https://github.com/utrpanic/today-what-else/commit/5a1d113b2b3e2f3d52c5efb28419635886ec1b50

'TIL > #100DaysOfSwiftUI' 카테고리의 다른 글

Day 24. Project 3, part 2  (0) 2020.03.09
Day 23. Project 3, part 1  (0) 2020.03.08
Day 21. Project 2, part 2  (0) 2020.03.07
Day 20. Project 2, part 1  (0) 2020.03.06
Day 19. Challenge day  (0) 2020.03.05

관련글 더보기

댓글 영역