상세 컨텐츠

본문 제목

Day 12. Optionals.

TIL/#100DaysOfSwiftUI

by box-jeon 2020. 1. 6. 23:44

본문

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

 

100 Days of SwiftUI – Day 12 – Hacking with Swift

100 Days of SwiftUI The 100 Days of SwiftUI is a free collection of videos, tutorials, tests, and more to help you learn SwiftUI faster. Click here to learn more, or watch the video below. Back to 100 Days of SwiftUI

www.hackingwithswift.com

드디어 Swift 파트의 마지막 날입니다. 처음 optional을 접했을 때는 약간 번거롭기도 해서 괜한 feature라고 생각했지만, 지금은 오히려 optional이 없는 언어를 사용하면 불안함이 느껴지기도 합니다. Optional이 등장하는 거의 모든 문법을 한번씩 언급하고 있네요.

- if let을 이용한 optional unwrapping
- guard let을 이용한 optional unwrapping
- Force unwrapping
- Implicitly unwrapped optional
- Nil coalescing
- Optional chaining
- Optional try
- Failable initializer
- Typecasting

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

Day 14. Swift review, day two.  (0) 2020.01.24
Day 13. Swift review, day one  (0) 2020.01.19
Day11. Protocols and extensions.  (0) 2020.01.01
Day 10. Classes.  (0) 2019.12.31
Day 9. Structs, part two.  (0) 2019.12.29

관련글 더보기

댓글 영역