HWPanModalContentView.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // HWPanModalContentView.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. #import <HWPanModal/HWPanModalPresentationUpdateProtocol.h>
  10. #import <HWPanModal/UIViewController+LayoutHelper.h>
  11. #import <HWPanModal/HWPanModalPanGestureDelegate.h>
  12. @class HWPanModalContainerView;
  13. NS_ASSUME_NONNULL_BEGIN
  14. /// when use `HWPanModalContentView`, you should take care of the safe area by yourself.
  15. @interface HWPanModalContentView : UIView <HWPanModalPresentable, HWPanModalPanGestureDelegate, HWPanModalPresentationUpdateProtocol, HWPanModalPresentableLayoutProtocol>
  16. /**
  17. * present in the target view
  18. * @param view The view which present to. If the view is nil, will use UIWindow's keyWindow.
  19. */
  20. - (void)presentInView:(nullable UIView *)view;
  21. /**
  22. * call this method to dismiss contentView directly.
  23. * @param flag should animate flag
  24. * @param completion dismiss completion block
  25. */
  26. - (void)dismissAnimated:(BOOL)flag completion:(void (^)(void))completion;
  27. @end
  28. NS_ASSUME_NONNULL_END