Returns a decoded property list for the specified key.
SDKs
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
func decodePropertyList(forKey key: String) -> Any?
Parameters
key
The coder key.
Return Value
A decoded object containing a property list.
Discussion
This method calls decode
with a set allowing only property list types.