Type Method


Returns a Boolean value that indicates whether a given property list is valid for a given format.


class func propertyList(_ plist: Any, isValidFor format: PropertyListSerialization.PropertyListFormat) -> Bool



A property list object.


A property list format. For possible values, see PropertyListSerialization.PropertyListFormat.

Return Value

true if plist is a valid property list in format format, otherwise false.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software