Instance Property

requiresSecureCoding

Indicates whether the archiver requires all archived classes to resist object substitution attacks.

Declaration

var requiresSecureCoding: Bool { get }

Discussion

true if this coder requires secure coding; false otherwise.

Secure coders check a set of allowed classes before decoding objects, and all objects must implement the NSSecureCoding protocol.

See Also

Secure Coding

var allowedClasses: Set<AnyHashable>?

The set of coded classes allowed for secure coding.