blob: 81465076afe17f9589eb7ae026f0db61ec49c626 [file] [log] [blame]
//
// UISwitch+RACSignalSupport.m
// ReactiveCocoa
//
// Created by Uri Baghin on 20/07/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import "UISwitch+RACSignalSupport.h"
#import "RACEXTKeyPathCoding.h"
#import "UIControl+RACSignalSupport.h"
#import "UIControl+RACSignalSupportPrivate.h"
@implementation UISwitch (RACSignalSupport)
- (RACChannelTerminal *)rac_newOnChannel {
return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.on) nilValue:@NO];
}
@end