// // UIView+Visualization.m // HCQuanfangtong // // Created by Apple on 2019/5/8. // Copyright © 2019 qft_Ios_03. All rights reserved. // #import "UIView+Visualization.h" @implementation UIView (Visualization) - (void)setCornerRadius:(CGFloat)cornerRadius { self.layer.cornerRadius = cornerRadius; } - (CGFloat)cornerRadius { return self.layer.cornerRadius; } - (void)setBorderWidth:(CGFloat)borderWidth { self.layer.borderWidth = borderWidth; } - (CGFloat)borderWidth { return self.layer.borderWidth; } - (void)setBorderColor:(UIColor *)borderColor { self.layer.borderColor = borderColor.CGColor; } - (UIColor *)borderColor { CGColorRef colorRef = self.layer.borderColor; return [UIColor colorWithCGColor:colorRef];; } @end