
//
//  UIView+cornerRadius.m
//  Lighting
//
//  Created by 曹云霄 on 16/8/26.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "UIView+CornerRadius.h"

@implementation UIView (cornerRadius)

- (void)setCornerRadius:(CGFloat)cornerRadius
{
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = cornerRadius;
}

- (CGFloat)cornerRadius
{
    return self.layer.cornerRadius;
}

- (void)setLineColor:(UIColor *)lineColor
{
    self.layer.borderColor = lineColor.CGColor;
}

- (UIColor *)lineColor
{
    return self.lineColor;
}

- (void)setLineWidth:(CGFloat)lineWidth
{
    self.layer.borderWidth = lineWidth;
}

- (CGFloat)lineWidth
{
    return self.layer.borderWidth;
}


@end
