UITextView+LookinServer.m 456 B

12345678910111213141516171819202122232425
  1. //
  2. // UITextView+LookinServer.m
  3. // LookinServer
  4. //
  5. // Created by Li Kai on 2019/2/26.
  6. // https://lookin.work
  7. //
  8. #import "UITextView+LookinServer.h"
  9. @implementation UITextView (LookinServer)
  10. - (CGFloat)lks_fontSize {
  11. return self.font.pointSize;
  12. }
  13. - (void)setLks_fontSize:(CGFloat)lks_fontSize {
  14. UIFont *font = [self.font fontWithSize:lks_fontSize];
  15. self.font = font;
  16. }
  17. - (NSString *)lks_fontName {
  18. return self.font.fontName;
  19. }
  20. @end