requiresSecureCoding
Indicates whether the archiver requires all archived classes to resist object substitution attacks.
Declaration
var requiresSecureCoding: Bool { get set }Parameters
- flag:
True if the receiver requires Nssecurecoding; False if not.
Discussion
If you set the archiver to require secure coding, it throws an exception if you attempt to archive a class which doesn’t conform to NSSecureCoding.
Note that the getter is on the superclass, NSCoder. See NSCoder for more information about secure coding.