-
Notifications
You must be signed in to change notification settings - Fork 4
/
NSMutableAttributedString+Unitytheory.h
43 lines (36 loc) · 1.26 KB
/
NSMutableAttributedString+Unitytheory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// NSMutableAttributedString+Unitytheory.h
//
// Created by Danny Morrow on 3/6/15.
// Copyright (c) 2015 unitytheory. All rights reserved.
//
@interface NSMutableAttributedString(unitytheory)
/*
Attributed String options
*/
- (void) setMultiple:(NSDictionary*)properties;
- (void) setAttribute:(NSString *)name value:(id)value;
@property (nonatomic) UIColor* backgroundColor;
@property (nonatomic) CGFloat baselineOffset;
@property (nonatomic) UIFont* font;
@property (nonatomic) UIColor* color;
@property (nonatomic) CGFloat kerning;
@property (nonatomic) CGFloat photoshopKerning;
@property (nonatomic) NSUInteger ligature;
@property (nonatomic) NSURL* link;
@property (nonatomic) CGFloat strokeWidth;
@property (nonatomic) UIColor* strokeColor;
@property (nonatomic) NSInteger superscript;
@property (nonatomic) UIColor* underlineColor;
@property (nonatomic) NSUnderlineStyle underlineStyle;
@property (nonatomic, readonly) NSRange range;
/*
Paragraph options
*/
@property (nonatomic) NSTextAlignment alignment;
@property (nonatomic) NSParagraphStyle* paragraphStyle;
@property (nonatomic) CGFloat lineSpacing;
@property (nonatomic) CGFloat paragraphSpacing;
@property (nonatomic) CGFloat lineHeightMultiple;
@property (nonatomic) NSLineBreakMode lineBreakMode;
@end