Type Method

propertyList(_:isValidFor:)

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

Declaration

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

Parameters

plist

A property list object.

format

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.