File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
PODS:
2
2
- OCMock (3.1.5)
3
- - SSDynamicText (0.4 .0)
3
+ - SSDynamicText (0.5 .0)
4
4
5
5
DEPENDENCIES:
6
6
- OCMock (~> 3)
@@ -12,6 +12,6 @@ EXTERNAL SOURCES:
12
12
13
13
SPEC CHECKSUMS:
14
14
OCMock: 4c2925291f80407c3738dd1db14d21d0cc278864
15
- SSDynamicText: 5981a0d801c081bc3966241792d9c08d2c2b2cfe
15
+ SSDynamicText: 775f8786d840e6d2b676e62600a42cf9c30cb9d6
16
16
17
17
COCOAPODS: 0.38.2
Original file line number Diff line number Diff line change @@ -113,6 +113,19 @@ UIFont *myFont = [UIFont dynamicFontWithName:@"Courier" baseSize:16.0f];
113
113
NSInteger textDelta = [[UIApplication sharedApplication] preferredFontSizeDelta];
114
114
```
115
115
116
+ ## AttributedText Support
117
+
118
+ SSDynamicText supports attributed text, all you have to do is set your attributed text to new property dynamicAttributedText.
119
+
120
+ ``` objc
121
+ /*
122
+ TextView and TextField sometimes calls setAttributedText even when we work with normal Text.
123
+ Framework is using it under the hood sometimes after layouts or even setText calls it. Because of that we cannot override
124
+ default attributeText setter to change font, sometimes it change font at random.
125
+ */
126
+
127
+ @property (nonatomic, copy) NSAttributedString *dynamicAttributedText;
128
+ ```
116
129
117
130
## Thanks!
118
131
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = "SSDynamicText"
3
- s . version = "0.4 .0"
3
+ s . version = "0.5 .0"
4
4
s . summary = "UILabel/TextField/TextView subclasses that support custom fonts with iOS 7's dynamic text sizes."
5
5
s . homepage = "https://github.com/splinesoft/SSDynamicText"
6
6
s . license = { :type => 'MIT' , :file => 'LICENSE' }
Original file line number Diff line number Diff line change 11
11
@protocol SSDynamicAttributedTextSizable <NSObject >
12
12
13
13
/*
14
- TextView and TextField sometimes calls setAttributedText even when se work with normal Text.
14
+ TextView and TextField sometimes calls setAttributedText even when we work with normal Text.
15
15
Framework is using it under the hood sometimes after layouts or even setText calls it. Because of that we cannot override
16
16
default attributeText setter to change font, sometimes it change font at random.
17
17
*/
You can’t perform that action at this time.
0 commit comments