Class

PropertyListDecoder

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

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.

See Also

Property Lists

class PropertyListEncoder

An object that encodes instances of data types to a property list.

class PropertyListSerialization

An object that converts between a property list and one of several serialized representations.