Загрузка...

SwiftUI 2.0 tutorial - @State vs @AppStorage vs @SceneStorage - Saving to UserDefaults in SwiftUI

In this video I want to talk about 2 new property wrappers that are available for SwiftUI 2.0. Thanks to @AppStorage and @SceneStorge we can very easily save data to UserDefaults 🤩. I will show you a coding example, so you can see how it works directly.

⬇️ you can find the image here: https://github.com/gahntpo/swiftui-property-wrapper

This example was created in another video of mine.
👉 You can find it there: https://youtu.be/q8nBhtmuKXs.

I also made a video that gives a great overview of the most important property wrappers in SwiftUI.
👉 You can find it here: https://youtu.be/J6afKuHJFCE

If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course https://school.swiftyplace.com/courses/swiftui-course
👨‍💻 my Core Data and SwiftUI course https://school.swiftyplace.com/courses/swiftui-and-core-data
👩🏻‍💻 Combine course https://school.swiftyplace.com/courses/master-combine-framework

#SwiftUI #DesignPatterns #UserDefaults

Видео SwiftUI 2.0 tutorial - @State vs @AppStorage vs @SceneStorage - Saving to UserDefaults in SwiftUI канала Karin Prater
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять