1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // HWPanModalPresenterProtocol.h
- // Pods
- //
- // Created by heath wang on 2019/4/29.
- //
- #import <UIKit/UIKit.h>
- #import <Foundation/Foundation.h>
- #import "HWPanModalPresentable.h"
- @class HWPanModalPresentationDelegate;
- NS_ASSUME_NONNULL_BEGIN
- @protocol HWPanModalPresenter <NSObject>
- @property (nonatomic, assign, readonly) BOOL isPanModalPresented;
- /**
- * 这里我们将实现UIViewControllerTransitioningDelegate协议的delegate通过runtime存入
- * 到viewControllerToPresent中。
- * use runtime to store this prop to presentedVC
- */
- @property (nonnull, nonatomic, strong) HWPanModalPresentationDelegate *presentationDelegate;
- /**
- * Note: This method ONLY for iPad, like UIPopoverPresentationController.
- */
- - (void)presentPanModal:(UIViewController<HWPanModalPresentable> *)viewControllerToPresent sourceView:(nullable UIView *)sourceView sourceRect:(CGRect)rect;
- /**
- * Present the Controller from bottom.
- */
- - (void)presentPanModal:(UIViewController<HWPanModalPresentable> *)viewControllerToPresent;
- @end
- NS_ASSUME_NONNULL_END
|