Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

userdefaults swiftui

UserDefaults.standard.set("value", forKey: "key")
UserDefaults.standard.synchronize()

let value = UserDefaults.standard.value(forKey: "value")
print(value)
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #userdefaults #swiftui
ADD COMMENT
Topic
Name
9+9 =