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