HWPanModalContainerView.h 980 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // HWPanModalContainerView.h
  3. // Pods
  4. //
  5. // Created by heath wang on 2019/10/17.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <HWPanModal/HWPanModalPresentable.h>
  9. @class HWPanModalContentView;
  10. @class HWDimmedView;
  11. @class HWPanContainerView;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface HWPanModalContainerView : UIView
  14. @property (nonatomic, readonly) HWDimmedView *backgroundView;
  15. @property (readonly) HWPanContainerView *panContainerView;
  16. @property (nonatomic, readonly) PresentationState currentPresentationState;
  17. - (instancetype)initWithPresentingView:(UIView *)presentingView contentView:(HWPanModalContentView<HWPanModalPresentable> *)contentView;
  18. - (void)show;
  19. - (void)dismissAnimated:(BOOL)flag completion:(void (^)(void))completion;
  20. - (void)setNeedsLayoutUpdate;
  21. - (void)updateUserHitBehavior;
  22. - (void)transitionToState:(PresentationState)state animated:(BOOL)animated;
  23. - (void)setScrollableContentOffset:(CGPoint)offset animated:(BOOL)animated;
  24. @end
  25. NS_ASSUME_NONNULL_END