Files
midi_ios/Pods/ReactiveObjC/ReactiveObjC/UIBarButtonItem+RACCommandSupport.h
2025-08-14 10:07:49 +08:00

27 lines
709 B
Objective-C

//
// UIBarButtonItem+RACCommandSupport.h
// ReactiveObjC
//
// Created by Kyle LeNeau on 3/27/13.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RACCommand<__contravariant InputType, __covariant ValueType>;
NS_ASSUME_NONNULL_BEGIN
@interface UIBarButtonItem (RACCommandSupport)
/// Sets the control's command. When the control is clicked, the command is
/// executed with the sender of the event. The control's enabledness is bound
/// to the command's `canExecute`.
///
/// Note: this will reset the control's target and action.
@property (nonatomic, strong, nullable) RACCommand<__kindof UIBarButtonItem *, id> *rac_command;
@end
NS_ASSUME_NONNULL_END