FileProtection
public enum FileProtection : String, CaseIterable, Codable, Sendable
Describes the file protection level applied to shard files on iOS.
This is a no-op on non-Apple platforms. On iOS, the value is mapped to
the corresponding Foundation.FileProtectionType and applied to every
shard file at creation time.
-
No file protection. The file is always accessible.
Declaration
Swift
case none -
The file is accessible only when the device is unlocked.
Declaration
Swift
case complete -
The file is accessible while the device is unlocked, or after unlock until the file handle is closed.
Declaration
Swift
case completeUnlessOpen -
The file is accessible from the first user authentication after boot until the device is shut down.
Declaration
Swift
case completeUntilFirstUserAuthentication
View on GitHub