Using async/await in SwiftUI

preview_player
Показать описание
Learn how to use Swift's upcoming async/await feature in SwiftUI apps.

00:00 Intro
00:50 Sample App in SwiftUI
01:20 Asynchronous code
02:00 The Pyramid of Doom
03:22 Installing theCompiler Toolchain
04:44 The callback-based protocol
04:55 Implementing the asynchronous protocol
05:57 Implementing the analyser process
08:12 Asynchronous implementation of the service
11:17 Connecting to the UI
13:30 Re-run the application
13:53 The asynchronous protocol and implementation
14:20 Closure

Рекомендации по теме
Комментарии
Автор

I'm so looking forward to seeing this channel grow! (no pressure :) ) Your tutorials over at firebase opened so many doors for me, especially with Combine.

gangalo
Автор

How did you make the arrows in your closures look like actual arrows instead of -> ?

frederickjavalera
Автор

Hey everyone, and thanks for all the great feedback on this video! Async/await is now a part of Swift 5.5 (available in Xcode 13), so it's a lot easier to get started with this new feature (no more downloading and installing a custom compiler toolchain!). I've started a new series about using Swift Concurrency in SwiftUI, and the first video is an updated version of this one.

PeterFriese
Автор

it is difficult for me to understand right now, but I hope I will understand in the future.

Автор

The "pyramid of doom" is a mythical problem. It's a consequence of doing too much in one function. It's very easy to use callbacks and avoid the pyramid. I've never seen a pyramid in the wild. It's always brought up as a drawback of callbacks, but it's not the real drawback. These are: inability to transform data easily because there is no return type of the function, no cancellation support

BigCarso
visit shbcf.ru