← iOS Development (Swift) learning path
iOS Development (Swift) · Module 9 of 10

Storage and device features

Persist data and use device capabilities.

📖 Key ideas

  1. UserDefaults (and @AppStorage) for small settings.
  2. SwiftData (iOS 17+) or Core Data for structured local data.
  3. Keychain for passwords and tokens.
  4. Camera, photos, location need Info.plist usage descriptions and permission.
  5. Push notifications via APNs.
💡 Real-life example: Keychain is a bank locker for secrets; UserDefaults is a notebook for preferences.
UserDefaultsSmall key-value storage
SwiftDataModern persistence framework
KeychainSecure credential storage
APNsApple Push Notification service