Skip to content

Type Property

withoutOverwriting

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
An option that attempts to write data to a file and fails with an error if the destination file already exists.
static let withoutOverwriting: Data.WritingOptions