Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- @interface ANZTextStyle : NSObject
- @property (nonatomic, readonly) ANZTextStyle *(^text)(NSString *text);
- @property (nonatomic, readonly) ANZTextStyle *(^lineHeight)(CGFloat height);
- @property (nonatomic, readonly) ANZTextStyle *(^breakMode)(NSLineBreakMode mode);
- @property (nonatomic, readonly) ANZTextStyle *(^align)(NSTextAlignment align);
- @property (nonatomic, readonly) ANZTextStyle *(^color)(UIColor *color);
- @property (nonatomic, readonly) ANZTextStyle *(^font)(UIFont *font);
- @property (nonatomic, readonly) ANZTextStyle *(^bgColor)(UIColor *color);
- @property (nonatomic, readonly) ANZTextStyle *(^baseline)(CGFloat offset);
- @property (nonatomic, readonly) ANZTextStyle *(^underline)();
- @property (nonatomic, readonly) ANZTextStyle *(^kern)(CGFloat value);
- @property (nonatomic, readonly) ANZTextStyle *(^range)(NSInteger offset, NSInteger length);
- - (instancetype)initWithString:(NSString *)string;
- - (NSAttributedString *)build;
- - (void)clean;
- @end
- @interface NSString (ANZ_TextStyleExtension)
- - (ANZTextStyle *)style;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement