Hello everyone, in this video we will learn ALL the different ways you can unwrap an optional, also some other effects produced by nil coalescing and optional chaining.
Is force unwrapping a good thing? Let's find out! 😉
Content:
0:00 - Intro
0:17 - Optional Binding
3:13 - Optional functions
3:56 - Optional Chaining
4:46 - Nil Coalescing
5:50 - Force Unwrapping 🔥
7:31 - Implicit Unwrapping
9:01 - Do you want to learn more?
------
Source code showed in the video:
[ Ссылка ]
------
Resources:
* Swift.org: [ Ссылка ]
* Apple: [ Ссылка ]
------
Other videos in the channel:
* Is nil a null pointer?: [ Ссылка ]
* Why can't you use Int indices in a String?: [ Ссылка ]
* LazyVStack: [ Ссылка ]
* GeometryReader and apple Watch animations: [ Ссылка ]
* What's new in SwiftUI 3.0: [ Ссылка ]
* Swift Concurrency: [ Ссылка ]
-----
Don't forget to subscribe to the channel, like it, and follow me on social media:
Twitter:
[ Ссылка ]
[ Ссылка ]
Finally, ask me for a video you would like to see next 😄!
Credits:
- Music by Wataboi from [ Ссылка ]
- Video edited with LumaFusion
Ещё видео!