In this video, we’ll dive into the world of Swift optionals and learn how to write extensions for better code patterns. You’ll see how easy it is to extend the functionality of optionals and how it can help simplify and improve the readability of your code. Whether you’re a beginner or an experienced Swift developer, this video is a must-watch. So, sit back and join us as we explore the power of extensions on Swift optionals! Don’t forget to like and subscribe for more helpful programming tips and tricks.
💻 Source Code:
🎥 Subscribe for more:
😎 Like my teaching style? Check out some of my most popular courses!
👉🏼 Connect (personal LinkedIn)
🚀 Follow on LinkedIn
** Popular Series
Building Instagram:
Building TikTok:
SwiftUI for Beginners:
** Get Skillshare free for 2 Months and learn iOS
** Manage all your investments from app earnings on Betterment!
** Grow your own Youtube tech channel with TubeBuddy:
#swift #optionals #iOSDeveloper
Watch more new videos about iOS Academy | Synthesized by Mindovermetal English
Ok this type of optional extension is pretty cool <3
I don‘t see the benefit of your actual extension instead checking against string?.isEmpty == false but it‘s ok, I can deal with that.
Isn't this easier: if name?.isEmpty ?? true { print("it's empty!") }
Thank you, great video!
Very useful, I have been doing this for a while. I'm doing it like this:
extension String? {
var isNilOrEmpty: Bool {
self?.isEmpty != false
}
}
But I guess the way you do it is a bit cleaner and easier to read.
useful video. thanks 🙏
Wow. Saw the extension to optionals for the first time.
What about the video about speech recognition in swiftui that you said a month ago that will come soon?
Useful video and solution to check if the string is nil or empty. But I think in case of nil check only, the new if let guard syntax should be enough. Learned a lot from your videos. Keep up the good work and happy coding.
Thanx, I'm going to implement it right now into a project I'm working on.