You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
19 lines
489 B
// |
|
// UISwitch+RACSignalSupport.m |
|
// ReactiveObjC |
|
// |
|
// Created by Uri Baghin on 20/07/2013. |
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved. |
|
// |
|
|
|
#import "UISwitch+RACSignalSupport.h" |
|
#import <ReactiveObjC/RACEXTKeyPathCoding.h> |
|
#import "UIControl+RACSignalSupportPrivate.h" |
|
|
|
@implementation UISwitch (RACSignalSupport) |
|
|
|
- (RACChannelTerminal *)rac_newOnChannel { |
|
return [self rac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.on) nilValue:@NO]; |
|
} |
|
|
|
@end
|
|
|