Skip to content

Commit cc04bd0

Browse files
committed
Prepare 1.1.3 release notes
1 parent e2b706a commit cc04bd0

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [1.1.3](https://github.com/SwiftKickMobile/SwiftMessages/releases/tag/1.1.2)
5+
6+
### Features
7+
8+
* Add default configuration `SwiftMessages.defaultConfig` that can be used when calling the variants of `show()` that don't take a `config` argument or as a global base for custom configs.
9+
* Add `Array.sm_random()` function that returns a random element from the array. Can be used to create a playful
10+
message that cycles randomly through a set of emoji icons, for example.
11+
12+
### Bug Fixes
13+
14+
* Fix #5 Emoji not shown!
15+
* Fix #6 There is no way to create SwiftMessages instance as there is no public initializer
16+
417
## [1.1.2](https://github.com/SwiftKickMobile/SwiftMessages/releases/tag/1.1.2)
518

619
### Bug Fixes

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ view.configureDropShadow()
6666

6767
// Set message title, body, and icon. Here, we're overriding the default warning
6868
// image with an emoji character.
69-
view.configureContent(title: "Warning", body: "Consider yourself warned.", iconText: "🤔")
69+
let iconText = ["🤔", "😳", "🙄", "😶"].sm_random()
70+
view.configureContent(title: "Warning", body: "Consider yourself warned.", iconText: iconText)
7071

7172
// Show the message.
7273
SwiftMessages.show(view: view)

SwiftMessages.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'SwiftMessages'
3-
spec.version = '1.1.2'
3+
spec.version = '1.1.3'
44
spec.license = { :type => 'MIT' }
55
spec.homepage = 'https://github.com/SwiftKickMobile/SwiftMessages'
66
spec.authors = { 'Timothy Moose' => 'tim@swiftkick.it' }
77
spec.summary = 'A very flexible message bar for iOS written in Swift.'
8-
spec.source = {:git => 'https://github.com/SwiftKickMobile/SwiftMessages.git', :tag => '1.1.2'}
8+
spec.source = {:git => 'https://github.com/SwiftKickMobile/SwiftMessages.git', :tag => '1.1.3'}
99
spec.platform = :ios, '8.0'
1010
spec.ios.deployment_target = '8.0'
1111
spec.source_files = 'SwiftMessages/**/*.swift'

SwiftMessages/SwiftMessages.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public class SwiftMessages: PresenterDelegate {
283283

284284
/**
285285
Specifies the default configuration to use when calling the variants of
286-
`show()` that don't take a `config` argument.
286+
`show()` that don't take a `config` argument or as a base for custom configs.
287287
*/
288288
public var defaultConfig = Config()
289289

0 commit comments

Comments
 (0)