UISwitch+RACSignalSupport.h 571 B

1234567891011121314151617181920212223
  1. //
  2. // UISwitch+RACSignalSupport.h
  3. // ReactiveCocoa
  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;
  10. @interface UISwitch (RACSignalSupport)
  11. /// Creates a new RACChannel-based binding to the receiver.
  12. ///
  13. /// Returns a RACChannelTerminal that sends whether the receiver is on whenever
  14. /// the UIControlEventValueChanged control event is fired, and sets it on or off
  15. /// when it receives @YES or @NO respectively.
  16. - (RACChannelTerminal *)rac_newOnChannel;
  17. @end