FLEXHierarchyViewController.h 804 B

12345678910111213141516171819202122232425262728
  1. //
  2. // FLEXHierarchyViewController.h
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 1/9/20.
  6. // Copyright © 2020 FLEX Team. All rights reserved.
  7. //
  8. #import "FLEXNavigationController.h"
  9. #import <TargetConditionals.h>
  10. @protocol FLEXHierarchyDelegate <NSObject>
  11. - (void)viewHierarchyDidDismiss:(UIView *)selectedView;
  12. @end
  13. /// A navigation controller which manages two child view controllers:
  14. /// a 3D Reveal-like hierarchy explorer, and a 2D tree-list hierarchy explorer.
  15. @interface FLEXHierarchyViewController : FLEXNavigationController
  16. + (instancetype)delegate:(id<FLEXHierarchyDelegate>)delegate;
  17. + (instancetype)delegate:(id<FLEXHierarchyDelegate>)delegate
  18. viewsAtTap:(NSArray<UIView *> *)viewsAtTap
  19. selectedView:(UIView *)selectedView;
  20. - (void)toggleHierarchyMode;
  21. @end