FHSView.h 933 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // FHSView.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 1/6/20.
  6. //
  7. #import <UIKit/UIKit.h>
  8. @interface FHSView : NSObject {
  9. @private
  10. BOOL _inScrollView;
  11. }
  12. + (instancetype)forView:(UIView *)view isInScrollView:(BOOL)inScrollView;
  13. /// Intentionally not weak
  14. @property (nonatomic, readonly) UIView *view;
  15. @property (nonatomic, readonly) NSString *identifier;
  16. @property (nonatomic, readonly) NSString *title;
  17. /// Whether or not this view item should be visually distinguished
  18. @property (nonatomic, readwrite) BOOL important;
  19. @property (nonatomic, readonly) CGRect frame;
  20. @property (nonatomic, readonly) BOOL hidden;
  21. @property (nonatomic, readonly) UIImage *snapshotImage;
  22. @property (nonatomic, readonly) NSArray<FHSView *> *children;
  23. @property (nonatomic, readonly) NSString *summary;
  24. /// @return importantAttr if .important, otherwise normalAttr
  25. //- (id)ifImportant:(id)importantAttr ifNormal:(id)normalAttr;
  26. @end