FLEXFieldEditorViewController.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // FLEXFieldEditorViewController.h
  3. // FLEX
  4. //
  5. // Created by Tanner on 11/22/18.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXVariableEditorViewController.h"
  9. #import "FLEXProperty.h"
  10. #import "FLEXIvar.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface FLEXFieldEditorViewController : FLEXVariableEditorViewController
  13. /// @return nil if the property is readonly or if the type is unsupported
  14. + (nullable instancetype)target:(id)target property:(FLEXProperty *)property commitHandler:(void(^_Nullable)())onCommit;
  15. /// @return nil if the ivar type is unsupported
  16. + (nullable instancetype)target:(id)target ivar:(FLEXIvar *)ivar commitHandler:(void(^_Nullable)())onCommit;
  17. #if TARGET_OS_TV
  18. /// Subclasses can change the button title via the \c title property
  19. @property (nonatomic, readonly) UIButton *getterButton;
  20. #else
  21. /// Subclasses can change the button title via the \c title property
  22. @property (nonatomic, readonly) UIBarButtonItem *getterButton;
  23. #endif
  24. - (void)getterButtonPressed:(id)sender;
  25. @end
  26. NS_ASSUME_NONNULL_END