Contents

allowedTopLevelClasses

A list of allowed classes the top-level object in an archive must conform to, for encoding and decoding.

Declaration

class var allowedTopLevelClasses: [AnyClass] { get }

Discussion

This property contains the value of transformedValueClass() if that value isn’t nil. Otherwise, it holds a list of the top level classes that it decodes, which includes NSArray, NSDictionary, NSSet, NSString, NSNumber, NSDate, NSData, NSURL, NSUUID, and NSNull.

Override this property in subclasses to provide an expanded or different set of allowed transformation classes.