//
//  UIView+OJARectCorner.h
//  OJAKitDemo
//
//  Created by luxiaoming on 2019/3/6.
//  Copyright © 2019 luxiaoming. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface OJAMaskView : UIView

@property (nonatomic, strong, nullable) UIBezierPath *maskPath;

@end


/**
 仿照 UIView+TBAdditions 写的给View添加圆角的分类
 */
@interface UIView (OJARectCorner)


/**
 注意：每次设置都会重新生成maskView或者layer.mask替换掉原来的
 */
- (void)setCornerRadius:(CGFloat)cornerRadius forRectCorner:(UIRectCorner)rectCorner;


//便捷方法

- (void)setTopCornerRadius:(CGFloat)cornerRadius;

- (void)setBottomCornerRadius:(CGFloat)cornerRadius;

- (void)setAllCornerRadius:(CGFloat)cornerRadius;

- (void)setNoneCornerRadius;

@end

NS_ASSUME_NONNULL_END
