Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ranesr committed Jan 14, 2018
1 parent 51b6524 commit dd7b001
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [2.0.1] - 2018-01-13

### Changed

- UIBarButtonItem extensions (Fixes [#14])

## [2.0] - 2017-12-06

### Added
Expand Down Expand Up @@ -72,7 +78,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Initial Version of SwiftIcons
- Support for Cocoapods

[Unreleased]: https://github.com/ranesr/SwiftIcons/compare/2.0...master
[Unreleased]: https://github.com/ranesr/SwiftIcons/compare/2.0.1...master
[2.0.1]: https://github.com/ranesr/SwiftIcons/compare/2.0...2.0.1
[2.0]: https://github.com/ranesr/SwiftIcons/compare/1.5.1...2.0
[1.5.1]: https://github.com/ranesr/SwiftIcons/compare/1.5...1.5.1
[1.5]: https://github.com/ranesr/SwiftIcons/compare/1.4.1...1.5
Expand All @@ -86,3 +93,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
[Extensions.swift]: https://github.com/ranesr/SwiftIcons/blob/master/SwiftIcons/Extensions.swift
[Hue]: https://github.com/hyperoslo/Hue
[#7]: https://github.com/ranesr/SwiftIcons/issues/7
[#14]: https://github.com/ranesr/SwiftIcons/issues/14
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Add the following lines to your `Podfile`:
```ruby
target 'YourProject' do
use_frameworks!
pod 'SwiftIcons', '~> 2.0'
pod 'SwiftIcons', '~> 2.0.1'
end
```

Expand Down
4 changes: 4 additions & 0 deletions Source/SwiftIcons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ public extension UIBarButtonItem {
let font = UIFont(name: icon.fontName(), size: iconSize)
assert(font != nil, icon.errorAnnounce())
setTitleTextAttributes([NSAttributedStringKey.font: font!], for: .normal)
setTitleTextAttributes([NSAttributedStringKey.font: font!], for: .highlighted)
setTitleTextAttributes([NSAttributedStringKey.font: font!], for: .disabled)
setTitleTextAttributes([NSAttributedStringKey.font: font!], for: .selected)
setTitleTextAttributes([NSAttributedStringKey.font: font!], for: .focused)
title = icon.text
tintColor = color
}
Expand Down
2 changes: 1 addition & 1 deletion SwiftIcons.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SwiftIcons'
s.version = '2.0'
s.version = '2.0.1'
s.summary = 'SwiftIcons - A library for using different font icons'
s.description = 'SwiftIcons library helps you use icons from any of these font icons - Dripicons, Emoji, FontAwesome, Icofont, Ionicons, Linearicons, Map-icons, Material icons, Open iconic, State face icons, Weather icons'

Expand Down
2 changes: 1 addition & 1 deletion SwiftIcons/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<action selector="goToGithub:" destination="992-F2-xEZ" eventType="touchUpInside" id="I3n-uX-RS9"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Version: 2.0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p4a-eR-qB1">
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Version: 2.0.1" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p4a-eR-qB1">
<rect key="frame" x="30" y="377" width="315" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="szw-oy-t1T"/>
Expand Down
Binary file modified docs/images/pic01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd7b001

Please sign in to comment.