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.