Managing Loading States in SwiftUI

preview_player
Показать описание
In this video, Mohammad Azam will demonstrate how to manage loading states in SwiftUI. Azam will also discuss how to create a higher order wrapper view allowing you to reuse the loading states on multiple screens.

RocketSim:

Check out my courses:

Gist:

#iosdev #iosdeveloper #swiftui #swiftuitutorial Check out all my videos and courses

Signup for a weekly newsletter! Get access to short articles, resources, discount coupons and more:
Рекомендации по теме
Комментарии
Автор

I would separate the task id from the result, i.e. 2 states, that way the task doesn't restart after it's finished and also don't need Equatable conformance, can even use the built-in generic Result<String, Error> generic type.

indiekiduk
Автор

what program are you using to annotate the screen?

Pcoxproductions
Автор

Seems like there’s no need for the generic, T, to be Codable in the Lodable enum?

JOyo