UIControl+RACSignalSupport.h 546 B

1234567891011121314151617181920212223
  1. //
  2. // UIControl+RACSignalSupport.h
  3. // ReactiveObjC
  4. //
  5. // Created by Josh Abernathy on 4/17/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACSignal<__covariant ValueType>;
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface UIControl (RACSignalSupport)
  12. /// Creates and returns a signal that sends the sender of the control event
  13. /// whenever one of the control events is triggered.
  14. - (RACSignal<__kindof UIControl *> *)rac_signalForControlEvents:(UIControlEvents)controlEvents;
  15. @end
  16. NS_ASSUME_NONNULL_END