UIButton+RACCommandSupport.h 624 B

12345678910111213141516171819202122232425
  1. //
  2. // UIButton+RACCommandSupport.h
  3. // ReactiveObjC
  4. //
  5. // Created by Ash Furrow on 2013-06-06.
  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 UIButton (RACCommandSupport)
  12. /// Sets the button's command. When the button is clicked, the command is
  13. /// executed with the sender of the event. The button's enabledness is bound
  14. /// to the command's `canExecute`.
  15. @property (nonatomic, strong, nullable) RACCommand<__kindof UIButton *, id> *rac_command;
  16. @end
  17. NS_ASSUME_NONNULL_END