Type Method

superclass()

Returns the class object for the receiver’s superclass.

Declaration

class func superclass() -> AnyClass?

Return Value

The class object for the receiver’s superclass.

See Also

Identifying Classes

class func isSubclass(of: AnyClass) -> Bool

Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class.

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