Changelog History
Page 3
-
v4.1.4 Changes
May 25, 2018 -
v4.1.3 Changes
May 23, 2018 -
v4.1.2 Changes
April 02, 20184.1.2
๐ Features
- โก๏ธ Updates for Swift 4.1
- #164 Added an optional
windowViewController
property toSwiftMessages.Config
for supplying a custom subclass ofWindowViewController
.
๐ Bug Fixes
- ๐
Custom presentation styles using
TopBottomAnimation
now display properly under top and bottom bars.
-
v4.1.1 Changes
๐ Features
- #152 Get current message being displayed without specifying an
id
- #152 Get current message being displayed without specifying an
-
v4.1.0 Changes
November 15, 2017๐ Features
- ๐ Fix #134 add support for
CenterAnimation
displayed on top or bottom instead of center (renamed toPhysicsAnimation
).
๐ Fixes
- ๐ Fix #134 add support for
-
v4.0.0 Changes
๐ Features
- Swift 4.0 syntax
- โ Added support for iOS 11 and iPhone X. From the readme:
SwiftMessages 4 supports iOS 11 out-of-the-box with built-in support for safe areas. To ensur that message view layouts look just right when overlapping safe areas, views that adopt the
MarginAdjustable
protocol (likeMessageView
) will have their layout margins automatically adjusted by SwiftMessages. However, there is no one-size-fits-all adjustment, so the following properties were added toMarginAdjustable
to allow for additional adjustments to be made to the layout margins:public protocol MarginAdjustable { ... /// Safe area top adjustment in iOS 11+ var safeAreaTopOffset: CGFloat { get set } /// Safe area bottom adjustment in iOS 11+ var safeAreaBottomOffset: CGFloat { get set } }
If you're using using custom nib files or view classes and your layouts don't look quite right, try adjusting the values of these properties.
BaseView
(the super class ofMessageView
) declares these properties to be@IBDesignable
and you can find sample values in the nib files included with SwiftMessages.๐ Bug Fixes
- ๐ Fix #100 memory leak.
- ๐ Change
Layout
enum capitalization to current Swift conventions.
-
v3.5.1 Changes
๐ Bug Fixes
- Undo change that broke
MessageView
class reference on nib files copied out of the SwiftMessages framework.
- Undo change that broke
-
v3.5.0 Changes
๐ Features
- โ Added
SwiftMessages.hideCounted(id:)
method of hiding. The counted method hides when the number of calls toshow()
andhideCounted(id:)
for a given message ID are equal. This can be useful for messages that may be ๐ shown from multiple code paths to ensure that all paths are ready to hide.
Also added
SwiftMessages.count(id:)
to get the current count andSwiftMessages.set(id:count:)
to set the current count.- โ Added ways to retrieve message views currently being shown, hidden, or queued to be shown.
// Get a message view with the given ID if it is currently // being shown or hidden. if let view = SwiftMessages.current(id: "some id") { ... } // Get a message view with the given ID if is it currently // queued to be shown. if let view = SwiftMessages.queued(id: "some id") { ... } // Get a message view with the given ID if it is currently being // shown, hidden or in the queue to be shown. if let view = SwiftMessages.currentOrQueued(id: "some id") { ... }
๐ Bug Fixes
- ๐ Fix #116 for message views that don't adopt the
Identifiable
protocol by using the memory address as the ID. - ๐ Fix #113 MessageView not hiding
- ๐ Fix #87 Support manual install
- โ Added
-
v3.4.0 Changes
๐ Features
- โ Added
.center
presentation style with a physics-based dismissal gesture. - โ Added
.custom(animator:)
presentation style, where you provide an instance of theAnimator
protocol. TheTopBottomAnimation
andCenterAnimation
animations both implementAnimator
and may be subclassed (configuration options will be added in a future release).PhysicsPanHandler
class to provide a physics-based dismissal gesture. - โ Added
.centered
message view layout with elements centered and arranged vertically. - โ Added
configureBackgroundView(width:)
andconfigureBackgroundView(sideMargin:)
convenience methods toMessageView
.
- โ Added
-
v3.3.4 Changes
๐ Features
- #89 Add
blur
dim mode option.
๐ Bug Fixes
- #98 Fix touch handling in message view's background view.
- โ #97 Fix main thread checker warning
- #89 Add