UIStepper+RACSignalSupport.h 733 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // UIStepper+RACSignalSupport.h
  3. // ReactiveObjC
  4. //
  5. // Created by Uri Baghin on 20/07/2013.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class RACChannelTerminal<ValueType>;
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface UIStepper (RACSignalSupport)
  12. /// Creates a new RACChannel-based binding to the receiver.
  13. ///
  14. /// nilValue - The value to set when the terminal receives `nil`.
  15. ///
  16. /// Returns a RACChannelTerminal that sends the receiver's value whenever the
  17. /// UIControlEventValueChanged control event is fired, and sets the value to the
  18. /// values it receives.
  19. - (RACChannelTerminal<NSNumber *> *)rac_newValueChannelWithNilValue:(nullable NSNumber *)nilValue;
  20. @end
  21. NS_ASSUME_NONNULL_END