Class
PropertyListDecoder
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
An object that decodes instances of data types from a property list.
class PropertyListDecoder
Topics
Initializers
init()Creates a new, reusable property list decoder.
Instance Properties
var userInfo: [CodingUserInfoKey : any Sendable]A dictionary you use to customize decoding by providing contextual information.
Instance Methods
func decode<T>(T.Type, from: Data) throws -> TReturns a value of the specified type by decoding a property list using the default property list format.func decode(_:from:configuration:)func decode<T>(T.Type, from: Data, format: inout PropertyListDecoder.PropertyListFormat) throws -> TReturns a value of the specified type by decoding a property list using the supplied format.func decode(_:from:format:configuration:)
Enumerations
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype