Skip to content

Commit e6ae6cc

Browse files
committed
Bump version
1 parent a1efc34 commit e6ae6cc

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

CHANGELOG.md

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

4+
## 7.0.1
5+
6+
### Changes
7+
8+
* Support iOS 13.
9+
10+
### Features
11+
* #335 Add option to hide status bar when view is displayed in a window. As of iOS 13, windows can no longer cover the status bar. The only alternative is to set `Config.prefersStatusBarHidden = true` to hide it.
12+
413
## 7.0.0
514

615
### Changes

SwiftMessages.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'SwiftMessages'
3-
spec.version = '7.0.0'
3+
spec.version = '7.0.1'
44
spec.license = { :type => 'MIT' }
55
spec.homepage = 'https://github.com/SwiftKickMobile/SwiftMessages'
66
spec.authors = { 'Timothy Moose' => 'tim@swiftkick.it' }

SwiftMessages/SwiftMessages.swift

+15-12
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ open class SwiftMessages {
6262
case automatic
6363

6464
/**
65-
Displays the message in a new window at the specified window level. Use
66-
`UIWindow.Level.normal` to display under the status bar and `UIWindow.Level.statusBar`
67-
to display over. When displaying under the status bar, SwiftMessages automatically
68-
increases the top margins of any message view that adopts the `MarginInsetting`
69-
protocol (as `MessageView` does) to account for the status bar.
65+
Displays the message in a new window at the specified window level.
66+
SwiftMessages automatically increases the top margins of any message
67+
view that adopts the `MarginInsetting` protocol (as `MessageView` does)
68+
to account for the status bar. As of iOS 13, windows can no longer cover the
69+
status bar. The only alternative is to set `Config.prefersStatusBarHidden = true`
70+
to hide it.
7071
*/
7172
case window(windowLevel: UIWindow.Level)
7273

@@ -261,17 +262,19 @@ open class SwiftMessages {
261262
public var interactiveHide = true
262263

263264
/**
264-
Specifies the preferred status bar style when the view is displayed
265-
directly behind the status bar, such as when using `.Window`
266-
presentation context with a `UIWindow.Level.normal` window level
267-
and `.Top` presentation style. This option is useful if the message
268-
view has a background color that needs a different status bar style than
269-
the current one. The default is `.Default`.
265+
Specifies the preferred status bar style when the view is being
266+
displayed in a window. This can be useful when the view is being
267+
displayed behind the status bar and the message view has a background
268+
color that needs a different status bar style than the current one.
269+
The default is `nil`.
270270
*/
271271
public var preferredStatusBarStyle: UIStatusBarStyle?
272272

273273
/**
274-
TODO: update docs
274+
Specifies the preferred status bar visibility when the view is being
275+
displayed in a window. As of iOS 13, windows can no longer cover the
276+
status bar. The only alternative is to hide the status bar by setting
277+
this options to `true`. Default is `nil`.
275278
*/
276279
public var prefersStatusBarHidden: Bool?
277280

0 commit comments

Comments
 (0)