Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #import <Foundation/Foundation.h>
  2.  
  3. @interface ANZTextStyle : NSObject
  4.  
  5. @property (nonatomic, readonly) ANZTextStyle *(^text)(NSString *text);
  6. @property (nonatomic, readonly) ANZTextStyle *(^lineHeight)(CGFloat height);
  7. @property (nonatomic, readonly) ANZTextStyle *(^breakMode)(NSLineBreakMode mode);
  8. @property (nonatomic, readonly) ANZTextStyle *(^align)(NSTextAlignment align);
  9. @property (nonatomic, readonly) ANZTextStyle *(^color)(UIColor *color);
  10. @property (nonatomic, readonly) ANZTextStyle *(^font)(UIFont *font);
  11. @property (nonatomic, readonly) ANZTextStyle *(^bgColor)(UIColor *color);
  12. @property (nonatomic, readonly) ANZTextStyle *(^baseline)(CGFloat offset);
  13. @property (nonatomic, readonly) ANZTextStyle *(^underline)();
  14. @property (nonatomic, readonly) ANZTextStyle *(^kern)(CGFloat value);
  15. @property (nonatomic, readonly) ANZTextStyle *(^range)(NSInteger offset, NSInteger length);
  16.  
  17. - (instancetype)initWithString:(NSString *)string;
  18. - (NSAttributedString *)build;
  19. - (void)clean;
  20.  
  21. @end
  22.  
  23. @interface NSString (ANZ_TextStyleExtension)
  24. - (ANZTextStyle *)style;
  25. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement