//
//  UISwitch+YSRACSignalSupport.h
//  ReactiveObjC
//
//  Created by Uri Baghin on 20/07/2013.
//  Copyright (c) 2013 GitHub, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YSRACChannelTerminal<ValueType>;

NS_ASSUME_NONNULL_BEGIN

@interface UISwitch (YSRACSignalSupport)

/// Creates a new YSRACChannel-based binding to the receiver.
///
/// Returns a YSRACChannelTerminal that sends whether the receiver is on whenever
/// the UIControlEventValueChanged control event is fired, and sets it on or off
/// when it receives @YES or @NO respectively.
- (YSRACChannelTerminal<NSNumber *> *)ysrac_newOnChannel;

@end

NS_ASSUME_NONNULL_END
