persistence string value

What is the most basic or simplest way to persist a string value?

Replies

NSUserDefaults. For example:

UserDefaults.standard.set("some value", forKey: "someKey")
UserDefaults.standard.string(forKey: "someKey")

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"