Class

PropertyListDecoder

An object that decodes instances of data types from a property list.

Declaration

class PropertyListDecoder

Topics

Decoding

init()

Creates a new, reusable property list decoder.

func decode<T>(T.Type, from: Data) -> T

Returns a value of the specified type by decoding a property list using the default property list format.

Customizing Decoding

func decode<T>(T.Type, from: Data, format: inout PropertyListSerialization.PropertyListFormat) -> T

Returns a value of the specified type by decoding a property list using the supplied format.

var userInfo: [CodingUserInfoKey : Any]

A dictionary you use to customize decoding by providing contextual information.

Relationships

Conforms To

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