Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Updated Podspec and README
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Sep 14, 2016
1 parent f8983f1 commit a1fd627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion FontBlaster.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "FontBlaster"
s.version = "2.1.5"
s.version = "3.0.0"
s.summary = "Programmatically load custom fonts into your iOS app."

s.description = <<-DESC
Expand Down
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Say goodbye to importing custom fonts via property lists as **FontBlaster** auto
## Installation Instructions

### CocoaPods
For Swift 3.0 support:

```ruby
pod 'FontBlaster'
```
Expand All @@ -30,13 +32,9 @@ For Swift 2.3 support:
pod 'FontBlaster' :git => 'https://github.com/ArtSabintsev/FontBlaster.git', :branch => 'swift2.3'
```

For Swift 3 support:

```ruby
pod 'FontBlaster' :git => 'https://github.com/ArtSabintsev/FontBlaster.git', :branch => 'swift3'
```

### Carthage
For Swift 3.0 support:

``` swift
github "ArtSabintsev/FontBlaster"
```
Expand All @@ -47,15 +45,9 @@ For Swift 2.3 support:
github "ArtSabintsev/FontBlaster" "swift2.3"
```

For Swift 3 support:

```swift
github "ArtSabintsev/FontBlaster" "swift3"
```

### Swift Package Manager
``` swift
.Package(url: "https://github.com/ArtSabintsev/FontBlaster.git", majorVersion: 2)
.Package(url: "https://github.com/ArtSabintsev/FontBlaster.git", majorVersion: 3)
```

### Manual
Expand All @@ -74,7 +66,7 @@ FontBlaster.blast() // Defaults to NSBundle.mainBundle() if no arguments are pas
If you are loading from a bundle that isn't found inside your app's `mainBundle`, simply pass a reference to your `NSBundle` in the `blast(_:)` method:

```Swift
FontBlaster.blast(_:) // Takes one argument of type NSBundle, or as mentioned above, defaults to NSBundle.mainBundle() if no arguments are passed
FontBlaster.blast(bundle:) // Takes one argument of type NSBundle, or as mentioned above, defaults to NSBundle.mainBundle() if no arguments are passed
```

If you need a list of all of the loaded fonts, an overloaded version of the `blast(_:)` method has a completion handler that returns just that. Just like the original method, this method takes either a custom `NSBundle` or defaults to `NSBundle.mainBundle()` if no argument is passed.
Expand All @@ -87,7 +79,7 @@ FontBlaster.blast() { (fonts) in
}

// Custom bundle is passed as argument
FontBlaster.blast(_:) { (fonts) in
FontBlaster.blast(bundle:) { (fonts) in
print(fonts) // fonts is an array of Strings containing font names
}
```
Expand Down

0 comments on commit a1fd627

Please sign in to comment.