Переглядів 8,989
Hello guys, Welcome to another video!
Today we will implement one of the new features introduced for Swift 5.5: Asynchronous functions. This will be possible by using the async/await syntax, let's see how we can refactor a code fully of closures and complicated error handling.
This demo is based on the previous video showing SwiftUI 3.0, I recommend you to check it out: • What's new in SwiftUI ...
Content:
0:00 - Intro
0:31 - State of the art
1:21 - Asynchronous code using closures
8:25 - A lot of boilerplate code!
9:19 - What is async/ await solving?
10:11 - Async/Await in action
18:28 - Is it the end of Combine?
19:29 - Outro
------
Source code showed in the video: github.com/pitt500/swift-and-...
------
Resources:
* Meet async/await in Swift: developer.apple.com/videos/pl...
* Async/await proposal: github.com/apple/swift-evolut...
* Async functions with Combine: www.swiftbysundell.com/articl...
------
Other videos in the channel:
* State management in SwiftUI: • State Management in Sw...
* UIKit in SwiftUI: • UIKit in SwiftUI
* Generics: • Generics
* The power of Combine: • The power of Combine
* Never type in Swift & SwiftUI: • Never Type in SwiftUI:...
-----
Don't forget to subscribe to the channel, like it, and follow me on social media:
Twitter:
/ swiftandtips
/ pitt500
Finally, ask me for a video you would like to see next 😄!
Credits:
- Music by Wataboi from pixabay.com/
- Video edited with LumaFusion