Geek Culture
Published in

Geek Culture

SwiftUI Tutorial: Persistent Data using UserDefaults and AppStorage

How to save the changes in your Apple app

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 TextEditor.

--

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

Should I Learn SwiftUI instead of UIKit?

Editing items in CoreData

Apple Will Cut AppStore Charges to 15% for Some Developers, Starting January 1st

Most Powerful Widgets App for iOS14

macOS Daemonology

Building a Renderer with Metal (Part 2)— Setting up a Development Environment

iOS UITableViewCell / UICollectionViewCell registering and resuing — Using Swift protocol &…

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
Arc Sosangyo

Arc Sosangyo

Adfectus and ML Lingo on the App Store | Self-help Author | Coder | Traveler | Living in Japan

More from Medium

SwiftUI Tutorial: Working with ScrollView

Neumorphic Button Style in SwiftUI

When you click the button it looks like it’s been pressed.

SecureField in SwiftUI

SwiftUI: Calculate Scroll Offset in ScrollViews