Geek Culture
Published in

Geek Culture

SwiftUI Tutorial: Persistent Data using UserDefaults and AppStorage

How to save the changes locally in your apple device

Figure 1.

In my previous SwiftUI related tutorial, we created a note taking app where user has an option to change app’s appearance. Although the app works fine, closing it will revert all the changes made to its default value, which includes the notes written in the…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store