HWPanModalIndicatorProtocol.h 728 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // HWPanModalIndicatorProtocol.h
  3. // HWPanModal
  4. //
  5. // Created by heath wang on 2019/8/9.
  6. //
  7. typedef NS_ENUM(NSUInteger, HWIndicatorState) {
  8. HWIndicatorStateNormal NS_SWIFT_NAME(normal), // origin state
  9. HWIndicatorStatePullDown NS_SWIFT_NAME(pull), // drag down state
  10. };
  11. @protocol HWPanModalIndicatorProtocol <NSObject>
  12. /**
  13. * When user drags, the state will change.
  14. * You can change your UI here.
  15. * @param state The state when drag changed.
  16. */
  17. - (void)didChangeToState:(HWIndicatorState)state;
  18. /**
  19. * Tell the size of the indicator.
  20. */
  21. - (CGSize)indicatorSize;
  22. /**
  23. * You can layout your UI here if you need.
  24. * This method called when indicator added to super view
  25. */
  26. - (void)setupSubviews;
  27. @end