StructureFoundationEssentials
Data.WritingOptions
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Options to control the writing of data to a URL.
struct WritingOptions
Topics
Initializers
Instance Properties
Type Properties
static let atomic: Data.WritingOptionsAn option to write data to an auxiliary file first and then replace the original file with the auxiliary file when the write completes.static let completeFileProtection: Data.WritingOptionsAn option to make the file accessible only while the device is unlocked.static let completeFileProtectionUnlessOpen: Data.WritingOptionsAn option to allow the file to be accessible while the device is unlocked or the file is already open.static let completeFileProtectionUntilFirstUserAuthentication: Data.WritingOptionsAn option to allow the file to be accessible after a user first unlocks the device.static let fileProtectionMask: Data.WritingOptionsAn option the system uses when determining the file protection options that the system assigns to the data.static let noFileProtection: Data.WritingOptionsAn option to not encrypt the file when writing it out.static let withoutOverwriting: Data.WritingOptionsAn option that attempts to write data to a file and fails with an error if the destination file already exists.
Default Implementations
Relationships
Conforms To
Swift.EquatableSwift.ExpressibleByArrayLiteralSwift.OptionSetSwift.RawRepresentableSwift.SendableSwift.SendableMetatypeSwift.SetAlgebra