How do you handle user profile? Is there something similar to registry or SharedPreferences for IOS?


#1

Good day!

I created an app which contains user data and I was wondering if there is an appropriate storage area for such, and I was thinking something similar to registries or SharedPreference (Android). The data does not grow so Im thinking Database is not a good solution for this.

What’s the appropriate way to handle this?

Thanks.


#2

Use UserDefaults for non sensitive data (https://developer.apple.com/documentation/foundation/userdefaults)

Use KeyChains for passwords and other sensitive data (https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/storing_keys_in_the_keychain)


#3

Awesome!

This is what im looking for!