Open ClassFoundation5.9.0
PropertyListEncoder
class PropertyListEncoder
Citizens in Foundation
Members
init(
) Initializes
self
with default strategies.var outputFormat: PropertyListSerialization.PropertyListFormat
The output format to write the property list data in. Defaults to
.binary
.var userInfo: [CodingUserInfoKey : Any]
Contextual user-provided information for use during encoding.
func encode<Value>(Value
) throws -> Data Encodes the given top-level value and returns its property list representation.