Files
featherVoice/Pods/ReactiveObjC/ReactiveObjC/UISegmentedControl+RACSignalSupport.h
2025-08-08 10:49:36 +08:00

29 lines
817 B
Objective-C

//
// UISegmentedControl+RACSignalSupport.h
// ReactiveObjC
//
// Created by Uri Baghin on 20/07/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RACChannelTerminal<ValueType>;
NS_ASSUME_NONNULL_BEGIN
@interface UISegmentedControl (RACSignalSupport)
/// Creates a new RACChannel-based binding to the receiver.
///
/// nilValue - The segment to select when the terminal receives `nil`.
///
/// Returns a RACChannelTerminal that sends the receiver's currently selected
/// segment's index whenever the UIControlEventValueChanged control event is
/// fired, and sets the selected segment index to the values it receives.
- (RACChannelTerminal<NSNumber *> *)rac_newSelectedSegmentIndexChannelWithNilValue:(nullable NSNumber *)nilValue;
@end
NS_ASSUME_NONNULL_END