https://www.hackingwithswift.com/100/swiftui/17
100 Days of SwiftUI – Day 17 – Hacking with Swift
Project 1, part two As Immanuel Kant said, “experience without theory is blind, but theory without experience is mere intellectual play.” Yesterday we covered all the techniques required to build this app, so now it’s time to turn all that head knowledge i
www.hackingwithswift.com
N빵계산기인 WeSplit을 본격적으로 만들어 봅니다. 시키는대로 순순히 따라가며 TextField와 2가지 스타일의 Picker를 추가합니다. 최종적으로 각자가 내야할 돈 계산은 computed property를 사용하는데, 문득 의문이 들었습니다. 만약 @State로 정의한 property가 존재하지만 정작 body에서 실제로 사용하는 곳은 없다고 할 때, 해당 property가 변경되면 body를 새로 그릴까요? 지금까지 배운 걸로는 two-way binding으로만 @State property를 변경할 수 있기 때문에 실험을 해보려면 머리를 좀 굴려야될 것 같습니다. 진도를 어서 나가는 게 더 좋겠죠.
https://github.com/utrpanic/today-what-else/commit/662360c02f2e1c5ff23098db498e5eaa5b4fede9
Day 19. Challenge day (0) | 2020.03.05 |
---|---|
Day 18. Project 1, part three (0) | 2020.03.04 |
Day 16. Project 1, part one. (0) | 2020.01.27 |
Day 15. Swift review, day three. (0) | 2020.01.25 |
Day 14. Swift review, day two. (0) | 2020.01.24 |
댓글 영역