상세 컨텐츠

본문 제목

Day 28. Project 4, part 3

TIL/#100DaysOfSwiftUI

by box-jeon 2020. 3. 13. 23:24

본문

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

 

100 Days of SwiftUI – Day 28 – Hacking with Swift

Project 4, part 3 This project was a chance for you to practice some fundamentals of SwiftUI, learn some new UI controls with DatePicker and Stepper, see for yourself how Swift makes it easy to handle dates, and – just for fun – dip your toe into the world

www.hackingwithswift.com

Wrap Up 하고 문제 풀고 과제 하고. 갑자기 Stepper를 Picker로 고쳐보라고 하는데, 아무 것도 생각이 안나서 잠시 막막했습니다. 중간에 이상한 일을 하나 겪었는데, ForEach(1 ... 20)은 컴파일이 안되더라는...

https://www.hackingwithswift.com/quick-start/swiftui/how-to-fix-initializer-init-rowcontent-requires-that-sometype-conform-to-identifiable

 

How to fix “Initializer 'init(_:rowContent:)' requires that ‘SomeType’ conform to 'Identifiable’” - a free SwiftUI by Example tu

Was this page useful? Let us know! 1 2 3 4 5

www.hackingwithswift.com

의도적인 것 같은데 SwiftUI는 half-open range만 지원하지 closed range는 지원하지 않는다고 합니다. 사실 평소에 closed range를 사용하는 일이 거의 없긴 하지만 약간 당황스럽긴 하네요.

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

Day 30. Project 5, part 2  (0) 2020.03.15
Day 29. Project 5, part 1  (0) 2020.03.14
Day 27. Project 4, part 2  (0) 2020.03.12
Day 26. Project 4, part 1  (0) 2020.03.12
Day 25. Milestone: Projects 1-3  (0) 2020.03.11

관련글 더보기

댓글 영역