Skip to content

Commit

Permalink
Merge pull request #15 from splinesoft/release-0.5.0
Browse files Browse the repository at this point in the history
[BUMP] 0.5.0
  • Loading branch information
Remki committed Sep 21, 2015
2 parents 7a878dd + e5bd71d commit 71493ba
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- OCMock (3.1.5)
- SSDynamicText (0.4.0)
- SSDynamicText (0.5.0)

DEPENDENCIES:
- OCMock (~> 3)
Expand All @@ -12,6 +12,6 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
OCMock: 4c2925291f80407c3738dd1db14d21d0cc278864
SSDynamicText: 5981a0d801c081bc3966241792d9c08d2c2b2cfe
SSDynamicText: 775f8786d840e6d2b676e62600a42cf9c30cb9d6

COCOAPODS: 0.38.2
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ UIFont *myFont = [UIFont dynamicFontWithName:@"Courier" baseSize:16.0f];
NSInteger textDelta = [[UIApplication sharedApplication] preferredFontSizeDelta];
```

## AttributedText Support

SSDynamicText supports attributed text, all you have to do is set your attributed text to new property dynamicAttributedText.

```objc
/*
TextView and TextField sometimes calls setAttributedText even when we work with normal Text.
Framework is using it under the hood sometimes after layouts or even setText calls it. Because of that we cannot override
default attributeText setter to change font, sometimes it change font at random.
*/

@property (nonatomic, copy) NSAttributedString *dynamicAttributedText;
```

## Thanks!

Expand Down
2 changes: 1 addition & 1 deletion SSDynamicText.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SSDynamicText"
s.version = "0.4.0"
s.version = "0.5.0"
s.summary = "UILabel/TextField/TextView subclasses that support custom fonts with iOS 7's dynamic text sizes."
s.homepage = "https://github.com/splinesoft/SSDynamicText"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
2 changes: 1 addition & 1 deletion SSDynamicText/SSDynamicAttributedTextSizable.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@protocol SSDynamicAttributedTextSizable <NSObject>

/*
TextView and TextField sometimes calls setAttributedText even when se work with normal Text.
TextView and TextField sometimes calls setAttributedText even when we work with normal Text.
Framework is using it under the hood sometimes after layouts or even setText calls it. Because of that we cannot override
default attributeText setter to change font, sometimes it change font at random.
*/
Expand Down

0 comments on commit 71493ba

Please sign in to comment.