Skip to content

Commit 71493ba

Browse files
committed
Merge pull request #15 from splinesoft/release-0.5.0
[BUMP] 0.5.0
2 parents 7a878dd + e5bd71d commit 71493ba

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- OCMock (3.1.5)
3-
- SSDynamicText (0.4.0)
3+
- SSDynamicText (0.5.0)
44

55
DEPENDENCIES:
66
- OCMock (~> 3)
@@ -12,6 +12,6 @@ EXTERNAL SOURCES:
1212

1313
SPEC CHECKSUMS:
1414
OCMock: 4c2925291f80407c3738dd1db14d21d0cc278864
15-
SSDynamicText: 5981a0d801c081bc3966241792d9c08d2c2b2cfe
15+
SSDynamicText: 775f8786d840e6d2b676e62600a42cf9c30cb9d6
1616

1717
COCOAPODS: 0.38.2

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,19 @@ UIFont *myFont = [UIFont dynamicFontWithName:@"Courier" baseSize:16.0f];
113113
NSInteger textDelta = [[UIApplication sharedApplication] preferredFontSizeDelta];
114114
```
115115

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+
```
116129

117130
## Thanks!
118131

SSDynamicText.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SSDynamicText"
3-
s.version = "0.4.0"
3+
s.version = "0.5.0"
44
s.summary = "UILabel/TextField/TextView subclasses that support custom fonts with iOS 7's dynamic text sizes."
55
s.homepage = "https://github.com/splinesoft/SSDynamicText"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

SSDynamicText/SSDynamicAttributedTextSizable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@protocol SSDynamicAttributedTextSizable <NSObject>
1212

1313
/*
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.
1515
Framework is using it under the hood sometimes after layouts or even setText calls it. Because of that we cannot override
1616
default attributeText setter to change font, sometimes it change font at random.
1717
*/

0 commit comments

Comments
 (0)