@Observable @Bindable in iOS17 - SwiftUI Data Flow

preview_player
Показать описание
@Observable @Bindable in iOS17 - SwiftUI Data Flow

In this video, we're going to look at how to handle data in Swift using the new features in iOS17 and SwiftUI. We'll be using the new @Observable and @Bindable proposal APIs to build a data flow scenario that will show you how to easily handle data in your apps.

Pay attention as we cover how to use these new APIs to handle data in your iOS17 app. We'll be working with the new @State and @Environment proposal APIs to create a data flow scenario that will show you how to use these APIs to manage your data. After watching this video, you'll have a better understanding of how to handle data in your Swift apps using the new SwiftUI features!

Become a SwiftUI Expert - Learn Data Handling in this Epic Masterclass! 👇

00:00 INTRO
00:22 STARTER PROJECT OVERVIEW
01:30 THE ESB ARCHITECTURE
01:50 GET ALL OF MY PRODUCTS
02:15 CREATE A VIEW STATE
03:00 OBSERVABLE IN SWIFTUI
05:13 CREATE A MODEL IN SWIFTUI
06:13 ENVIRONMENT IN SWIFTUI
08:01 ACCESSING THE ENVIRONMENT IN SWIFTUI
09:25 BINDABLE IN SWIFTUI
13:13 WHERE TO GO NEXT

→ PLAYLIST:

DO YOU WANT TO ME TO WORK ON YOUR PROJECT?

TOOLS I RECOMMEND:
__________
Get in touch:

SUBSCRIBE to weekly tips & tutorials for building iOS apps!

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

In the first example it should be more correct to use @Bindable instead of @State, according to the WWDC apple presentation of the Observation framework. Isn’t it?

yourbestsail
Автор

Thanks for the great tutorial :) 1 Question: When using @Observable for AppState, how would you then write out the AppState properties to persistent storage as using @AppStorage with @Observable does not seem to work?

cpbulletsponge
Автор

What about the other Proprty Wrappers? Better avoiding them?
@StateObject
@ObservedObject
@Binding
@EnvironmentObject
@Published

LebenWerden
visit shbcf.ru