Repository navigation
What’s new
- Use the same typed API on Apple platforms and Linux. Linux stores credentials through libsecret with a Secret Service provider such as GNOME Keyring or KWallet. Linux setup and behavior
- Opt into the macOS data-protection keychain and use system access-control policies on supported Apple platforms. The macOS default remains the legacy login keychain, and switching stores does not move existing items.
- Observe changes made by
Keychainand@KeychainStorageinstances that use the same platform store. Internet passwords can be observed by server.
Upgrading from 1.x
SwiftyChain requires Swift 6.3 or later. The new minimum deployment targets are macOS 15, iOS and iPadOS 18, Mac Catalyst 18, tvOS 18, watchOS 11, and visionOS 2.
Version 2.0 changes custom backends, key policies, error handling, and the optional observation and cryptography APIs. See the 2.0 migration guide before updating.