NSObject

class NSObject : NSObjectProtocol

This extension adds some useful functions to NSObject.

  • Check if the object is valid (not null).

    Declaration

    Swift

    public func isValid() -> Bool

    Return Value

    Returns if the object is valid