CALayer+XibConfiguration.m 421 B

1234567891011121314151617181920212223
  1. //
  2. // CALayer+XibConfiguration.m
  3. // XenonSDK
  4. //
  5. // Created by fq on 2020/12/12.
  6. // Copyright © 2020 SAGESSE. All rights reserved.
  7. //
  8. #import "CALayer+XibConfiguration.h"
  9. #import <UIKit/UIKit.h>
  10. @implementation CALayer (XibConfiguration)
  11. - (void)setBorderUIColor:(UIColor *)color
  12. {
  13. self.borderColor = color.CGColor;
  14. }
  15. - (UIColor*)borderUIColor
  16. {
  17. return [UIColor colorWithCGColor:self.borderColor];
  18. }
  19. @end