UIBarButtonItem+RACCommandSupport.h 709 B

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