Skip to content

Commit bd1ad4e

Browse files
committed
Readying for 1.5
1 parent 7757b2f commit bd1ad4e

5 files changed

Lines changed: 23 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
55

66
## [Unreleased]
77

8+
## [1.5] - 2017-06-07
9+
10+
### Added
11+
12+
- UIBarButtonItem extension for custom view
13+
14+
### Changed
15+
16+
- UIBarButtonItem extensions (Fixes [#7])
17+
818
## [1.4.1] - 2017-05-05
919

1020
### Added
@@ -50,7 +60,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
5060
- Initial Version of SwiftIcons
5161
- Support for Cocoapods
5262

53-
[Unreleased]: https://github.com/ranesr/SwiftIcons/compare/1.4.1...master
63+
[Unreleased]: https://github.com/ranesr/SwiftIcons/compare/1.5...master
64+
[1.5]: https://github.com/ranesr/SwiftIcons/compare/1.4.1...1.5
5465
[1.4.1]: https://github.com/ranesr/SwiftIcons/compare/1.4...1.4.1
5566
[1.4]: https://github.com/ranesr/SwiftIcons/compare/1.3...1.4
5667
[1.3]: https://github.com/ranesr/SwiftIcons/compare/1.2...1.3
@@ -60,3 +71,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6071
[Tests]: https://github.com/ranesr/SwiftIcons/tree/master/SwiftIconsTests
6172
[Extensions.swift]: https://github.com/ranesr/SwiftIcons/blob/master/SwiftIcons/Extensions.swift
6273
[Hue]: https://github.com/hyperoslo/Hue
74+
[#7]: https://github.com/ranesr/SwiftIcons/issues/7

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Add the following lines to your `Podfile`:
6868
```ruby
6969
target 'YourProject' do
7070
use_frameworks!
71-
pod 'SwiftIcons', '~> 1.4.1'
71+
pod 'SwiftIcons', '~> 1.5'
7272
end
7373
```
7474

@@ -277,17 +277,20 @@ barButtonItem.setIcon(icon: .ionicons(.iosFootball), iconSize: 30)
277277
// Icon with colors
278278
barButtonItem.setIcon(icon: .ionicons(.iosFootball), iconSize: 30, color: textColor)
279279

280+
// Icon with custom cgRect
281+
barButtonItem.setIcon(icon: .ionicons(.iosFootball), iconSize: 30, color: textColor, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), target: self, action: #selector(barButtonItem(sender:)))
282+
280283
// Icon with text around it
281-
barButtonItem.setIcon(prefixText: "Please ", icon: .ionicons(.iosDownload), postfixText: " download", cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), size: 23)
284+
barButtonItem.setIcon(prefixText: "Please ", icon: .ionicons(.iosDownload), postfixText: " download", cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), size: 23, target: self, action: #selector(barButtonItem(sender:)))
282285

283286
// Icon with color & colored text around it
284-
barButtonItem.setIcon(prefixText: "Blue ", prefixTextColor: .red, icon: .ionicons(.iosFootball), iconColor: .blue, postfixText: " football", postfixTextColor: .green, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), size: 20, iconSize: 30)
287+
barButtonItem.setIcon(prefixText: "Blue ", prefixTextColor: .red, icon: .ionicons(.iosFootball), iconColor: .blue, postfixText: " football", postfixTextColor: .green, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), size: 20, iconSize: 30, target: self, action: #selector(barButtonItem(sender:)))
285288

286289
// Icon with text with different fonts around it
287-
barButtonItem.setIcon(prefixText: "Digit ", prefixTextFont: font1!, icon: .emoji(.digitOne), postfixText: " One", postfixTextFont: font2!, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30))
290+
barButtonItem.setIcon(prefixText: "Digit ", prefixTextFont: font1!, icon: .emoji(.digitOne), postfixText: " One", postfixTextFont: font2!, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), target: self, action: #selector(barButtonItem(sender:)))
288291

289292
// Icon with text with different fonts & colors around it
290-
barButtonItem.setIcon(prefixText: "", prefixTextFont: font1!, prefixTextColor: .red, icon: .ionicons(.iosFootball), iconColor: .blue, postfixText: " football", postfixTextFont: font2!, postfixTextColor: .green, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), iconSize: 24)
293+
barButtonItem.setIcon(prefixText: "", prefixTextFont: font1!, prefixTextColor: .red, icon: .ionicons(.iosFootball), iconColor: .blue, postfixText: " football", postfixTextFont: font2!, postfixTextColor: .green, cgRect: CGRect(x: 0, y: 0, width: 30, height: 30), iconSize: 24, target: self, action: #selector(barButtonItem(sender:)))
291294

292295
```
293296

SwiftIcons.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 = 'SwiftIcons'
3-
s.version = '1.4.1'
3+
s.version = '1.5'
44
s.summary = 'SwiftIcons - A library for using different font icons'
55
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'
66

SwiftIcons/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<action selector="goToGithub:" destination="992-F2-xEZ" eventType="touchUpInside" id="I3n-uX-RS9"/>
4949
</connections>
5050
</button>
51-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Version: 1.4.1" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p4a-eR-qB1">
51+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Version: 1.5" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="p4a-eR-qB1">
5252
<rect key="frame" x="30" y="377" width="315" height="30"/>
5353
<constraints>
5454
<constraint firstAttribute="height" constant="30" id="szw-oy-t1T"/>

docs/images/pic01.png

557 Bytes
Loading

0 commit comments

Comments
 (0)