//
//  UIView+GMShadow.h
//  Gengmei
//
//  Created by lizhen on 2019/3/20.
//  Copyright © 2019 更美互动信息科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (GMShadow)

/**
 设置四边阴影效果

 @param shadowColor 阴影颜色
 @param shadowOpacity 阴影透明度
 @param shadowRadius 阴影半径
 @param shadowOffset 阴影偏移
 */
- (void)addShadow:(UIColor *)shadowColor
    shadowOpacity:(CGFloat)shadowOpacity
     shadowRadius:(CGFloat)shadowRadius
     shadowOffset:(CGSize)shadowOffset;

/**
 设置单边阴影效果
 
 @param shadowColor 阴影颜色
 @param shadowOpacity 阴影透明度
 @param shadowRadius 阴影半径
 @param shadowOffset 阴影偏移
 @param shdowFrame   单边阴影
 */
- (void)addShadow:(UIColor *)shadowColor
    shadowOpacity:(CGFloat)shadowOpacity
     shadowRadius:(CGFloat)shadowRadius
     shadowOffset:(CGSize)shadowOffset
      shadowFrame:(CGRect)shadowFrame;

@end

