Instance Method


Writes the contents of the data buffer to a location.


func write(to url: URL, options: Data.WritingOptions = []) throws



The location to write the data into.


Options for writing the data. Default value is [].

See Also

Reading and Writing Data

typealias Data.ReadingOptions

Options to control the reading of data from a URL.

typealias Data.WritingOptions

Options to control the writing of data to a URL.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software