12345678910111213141516171819202122232425262728293031323334 |
- //
- // HWPanContainerView.h
- // HWPanModal
- //
- // Created by heath wang on 2019/4/26.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface HWPanContainerView : UIView
- /// the presented view should add to the content view.
- @property (nonatomic, strong, readonly) UIView *contentView;
- - (instancetype)initWithPresentedView:(UIView *)presentedView frame:(CGRect)frame;
- - (void)updateShadow:(UIColor *)shadowColor
- shadowRadius:(CGFloat)shadowRadius
- shadowOffset:(CGSize)shadowOffset
- shadowOpacity:(float)shadowOpacity;
- - (void)clearShadow;
- @end
- @interface UIView (PanContainer)
- @property (nullable, nonatomic, strong, readonly) HWPanContainerView *panContainerView;
- @end
- NS_ASSUME_NONNULL_END
|