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

#import "UISegmentedControl+YSRACSignalSupport.h"
#import "YSRACEXTKeyPathCoding.h"
#import "UIControl+YSRACSignalSupportPrivate.h"

@implementation UISegmentedControl (YSRACSignalSupport)

- (YSRACChannelTerminal *)ysrac_newSelectedSegmentIndexChannelWithNilValue:(NSNumber *)nilValue {
	return [self ysrac_channelForControlEvents:UIControlEventValueChanged key:@keypath(self.selectedSegmentIndex) nilValue:nilValue];
}

@end
