filmov
tv
How to safely unwrap optionals in Swift with if-let and guard statements | Bootcamp #47

Показать описание
In almost every application there are cases where you will declare variables as optional. In Swift we declare a value as optional be using the ?. When we do this, we are telling Xcode that this variable has the potential to be nil (or without a value). Therefore, when we go to use that variable in our code, we need to safely check whether or not it really has a value at that time. Two of the smartest and safest ways to safely "unwrap" these optionals is be using 'if let' and 'guard' statements. In this video we will learn both! It should be noted that both of these methods are MUCH safer than explicitly unwrapping optionals by using the ! symbol (avoid this!).
🤙 WELCOME BACK 🤙
🤙 WELCOME BACK 🤙
Swift Optionals - How to Unwrap (real examples)
How to safely unwrap optionals in Swift with if-let and guard statements | Bootcamp #47
Ways to Unwrap Optionals in Swift
How to unwrap optionals with nil coalescing – Swift for Complete Beginners
Swift Tutorial: optionals, unwrapping, binding
How to Safely Unwrap Optional Values in Swift
How to unwrap optionals with guard – Swift for Complete Beginners
Implicitly unwrapped optionals – Swift in Sixty Seconds
Learn Swift: Safely Unwrap Optional (Chapter 4 Lesson 4)
Implicitly Unwrapped Optionals
(2020) Swift Tutorial - How To Unwrap Optionals - Forced, Guard, If - Let, Coalescing, Chaining
Swift | Optionals - Safely force unwrap
Swift for Beginners Part 7 - Optionals & Unwrapping
Swift Optionals - Is Force Unwrapping THAT Bad?
Swift Optionals Tutorial - Unwrapping - Guard, If Let, Chaining, Force
Swift Unwrapping Optionals Tutorial
Implicitly Unwrapped Optionals
Unwrapping Optionals with if let
Unwrapping optionals – Swift in Sixty Seconds
Swift Optionals and six ways to unwrap them
Optional vs Implicitly unwrapped optional in Swift || ios interview questions
Learn Swift: Unwrap Optional with if let (Chapter 4 Lesson 5)
Como funcionan los OPTIONALS, safe unwrap con los optional binding controls 'guard, if let&apo...
Unwrap optionals correctly with guard let - UITableViewCell data - Social Accounts App (ep. 6)
Комментарии