FLEXFieldEditorViewController.h 807 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // FLEXFieldEditorViewController.h
  3. // FLEX
  4. //
  5. // Created by Tanner on 11/22/18.
  6. // Copyright © 2018 Flipboard. 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;
  15. /// @return nil if the ivar type is unsupported
  16. + (nullable instancetype)target:(id)target ivar:(FLEXIvar *)ivar;
  17. /// Subclasses can change the button title via the \c title property
  18. @property (nonatomic, readonly) UIBarButtonItem *getterButton;
  19. - (void)getterButtonPressed:(id)sender;
  20. @end
  21. NS_ASSUME_NONNULL_END