FLEXExplorerToolbar.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // FLEXExplorerToolbar.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 4/4/14.
  6. // Copyright (c) 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class FLEXExplorerToolbarItem;
  10. NS_ASSUME_NONNULL_BEGIN
  11. /// Users of the toolbar can configure the enabled state
  12. /// and event target/actions for each item.
  13. @interface FLEXExplorerToolbar : UIView
  14. /// The items to be displayed in the toolbar. Defaults to:
  15. /// globalsItem, hierarchyItem, selectItem, moveItem, closeItem
  16. @property (nonatomic, copy) NSArray<FLEXExplorerToolbarItem *> *toolbarItems;
  17. /// Toolbar item for selecting views.
  18. @property (nonatomic, readonly) FLEXExplorerToolbarItem *selectItem;
  19. /// Toolbar item for presenting a list with the view hierarchy.
  20. @property (nonatomic, readonly) FLEXExplorerToolbarItem *hierarchyItem;
  21. /// Toolbar item for moving views.
  22. /// Its \c sibling is the \c lastTabItem
  23. @property (nonatomic, readonly) FLEXExplorerToolbarItem *moveItem;
  24. /// Toolbar item for presenting the currently active tab.
  25. @property (nonatomic, readonly) FLEXExplorerToolbarItem *recentItem;
  26. /// Toolbar item for presenting a screen with various tools for inspecting the app.
  27. @property (nonatomic, readonly) FLEXExplorerToolbarItem *globalsItem;
  28. /// Toolbar item for hiding the explorer.
  29. @property (nonatomic, readonly) FLEXExplorerToolbarItem *closeItem;
  30. /// A view for moving the entire toolbar.
  31. /// Users of the toolbar can attach a pan gesture recognizer to decide how to reposition the toolbar.
  32. @property (nonatomic, readonly) UIView *dragHandle;
  33. /// A color matching the overlay on color on the selected view.
  34. @property (nonatomic) UIColor *selectedViewOverlayColor;
  35. /// Description text for the selected view displayed below the toolbar items.
  36. @property (nonatomic, copy) NSString *selectedViewDescription;
  37. /// Area where details of the selected view are shown
  38. /// Users of the toolbar can attach a tap gesture recognizer to show additional details.
  39. @property (nonatomic, readonly) UIView *selectedViewDescriptionContainer;
  40. @end
  41. NS_ASSUME_NONNULL_END