NSObject

public extension NSObject
extension NSObject: ClassName
  • Performs action for a key once only.

    Declaration

    Swift

    func doOnce(key: String, action: () -> Void)