FHSViewController.h 879 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // FHSViewController.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 1/6/20.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// The view controller
  11. /// "FHS" stands for "FLEX (view) hierarchy snapshot"
  12. @interface FHSViewController : UIViewController
  13. /// Use this when you want to snapshot a set of windows.
  14. + (instancetype)snapshotWindows:(NSArray<UIWindow *> *)windows;
  15. /// Use this when you want to snapshot a specific slice of the view hierarchy.
  16. + (instancetype)snapshotView:(UIView *)view;
  17. /// Use this when you want to emphasize specific views on the screen.
  18. /// These views must all be in the same window as the selected view.
  19. + (instancetype)snapshotViewsAtTap:(NSArray<UIView *> *)viewsAtTap selectedView:(UIView *)view;
  20. @property (nonatomic, nullable) UIView *selectedView;
  21. @end
  22. NS_ASSUME_NONNULL_END