HWPanContainerView.h 733 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // HWPanContainerView.h
  3. // HWPanModal
  4. //
  5. // Created by heath wang on 2019/4/26.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface HWPanContainerView : UIView
  10. /// the presented view should add to the content view.
  11. @property (nonatomic, strong, readonly) UIView *contentView;
  12. - (instancetype)initWithPresentedView:(UIView *)presentedView frame:(CGRect)frame;
  13. - (void)updateShadow:(UIColor *)shadowColor
  14. shadowRadius:(CGFloat)shadowRadius
  15. shadowOffset:(CGSize)shadowOffset
  16. shadowOpacity:(float)shadowOpacity;
  17. - (void)clearShadow;
  18. @end
  19. @interface UIView (PanContainer)
  20. @property (nullable, nonatomic, strong, readonly) HWPanContainerView *panContainerView;
  21. @end
  22. NS_ASSUME_NONNULL_END