An object that decodes instances of data types from a property list.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 9.0+
Framework
- Foundation
Declaration
class PropertyListDecoder
An object that decodes instances of data types from a property list.
SDKs
Framework
class PropertyListDecoder
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.
func decode<T>(T .Type, from: Data, format: inout Property List Serialization .Property List Format) -> T
Returns a value of the specified type by decoding a property list using the supplied format.
var user Info: [Coding User Info Key : Any]
A dictionary you use to customize decoding by providing contextual information.