Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jun 7, 2016
1 parent 0bd9ad7 commit 0be63c3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
14 changes: 4 additions & 10 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ source 'https://github.com/cocoapods/specs.git'

platform :ios, '7.0'

xcodeproj 'SSDynamicTextExample'

def install_pods
pod 'SSDynamicText', :path => '../SSDynamicText.podspec'
end

target :SSDynamicTextExample do
install_pods
end
pod 'SSDynamicText', path: '..'

target :SSDynamicTextTests do
install_pods
target :SSDynamicTextTests do
inherit! :search_paths
pod 'OCMock', '~> 3'
end
end
10 changes: 5 additions & 5 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
PODS:
- OCMock (3.1.5)
- SSDynamicText (1.0)
- SSDynamicText (1.0.0)

DEPENDENCIES:
- OCMock (~> 3)
- SSDynamicText (from `../SSDynamicText.podspec`)
- SSDynamicText (from `..`)

EXTERNAL SOURCES:
SSDynamicText:
:path: ../SSDynamicText.podspec
:path: ".."

SPEC CHECKSUMS:
OCMock: 4c2925291f80407c3738dd1db14d21d0cc278864
SSDynamicText: d2a5b5cbd347209814f9907c1093b5abaf0da684
SSDynamicText: 145b9049bde69e24ea7690018808615562f996ff

PODFILE CHECKSUM: e30b319b2809f699d810029cb7864f43d43a824b
PODFILE CHECKSUM: 7b9fbdcc96fe25d235785becd8bc9d79598c8cba

COCOAPODS: 1.0.1
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SSDynamicText
=============

[![Circle CI](https://circleci.com/gh/splinesoft/SSDynamicText.svg?style=svg)](https://circleci.com/gh/splinesoft/SSDynamicText) [![codecov.io](http://codecov.io/github/splinesoft/SSDynamicText/coverage.svg?branch=master)](http://codecov.io/github/splinesoft/SSDynamicText?branch=master)

iOS 7's [`UIFontDescriptor`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIFontDescriptor_Class/) is pretty neat. Also pretty neat is dynamic text that responds to the preferred text size that the user specified in Settings.app.

What's not so neat, though, is that `+[UIFont preferredFontForTextStyle:]` only works with the system font, Helvetica Neue (iOS 8) or San Francisco (iOS 9). What if you have custom fonts and want to respect the user's text size preference?
Expand All @@ -17,8 +17,8 @@ Xcode 7.0+ with iOS 7.0+ SDK.

Install with [CocoaPods](http://cocoapods.org). Add to your `Podfile`:

```
pod 'SSDynamicText', :head # YOLO
```ruby
pod 'SSDynamicText', '~> 1.0'
```

## Example usage
Expand All @@ -33,7 +33,7 @@ UIKit views that responds when the user changes her preferred text size:
SSDynamicLabel *myLabel = [SSDynamicLabel labelWithFont:@"Courier"
baseSize:16.0f];
myLabel.text = @"Auto-sizing text!";

// Already have a font descriptor?
UIFontDescriptor *aDescriptor = [UIFontDescriptor fontDescriptorWithName:@"Courier"
size:16.0f];
Expand Down
15 changes: 7 additions & 8 deletions SSDynamicText.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Pod::Spec.new do |s|
s.name = "SSDynamicText"
s.version = "1.0"
s.name = 'SSDynamicText'
s.version = '1.0.0'
s.summary = "UILabel/UIButton/UITextField/UITextView 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' }
s.author = { "Jonathan Hersh" => "[email protected]" }
s.source = { :git => "https://github.com/splinesoft/SSDynamicText.git", :tag => s.version.to_s }
s.platform = :ios, '7.0'
s.homepage = 'https://github.com/splinesoft/SSDynamicText'
s.license = { type: 'MIT', file: 'LICENSE' }
s.author = { 'Jonathan Hersh' => '[email protected]' }
s.source = { git: 'https://github.com/splinesoft/SSDynamicText.git', tag: s.version.to_s }
s.requires_arc = true
s.compiler_flags = "-fmodules"
s.compiler_flags = '-fmodules'
s.source_files = 'SSDynamicText/*.{h,m}'
s.frameworks = 'UIKit'
s.ios.deployment_target = '7.0'
Expand Down

0 comments on commit 0be63c3

Please sign in to comment.