SwiftMessages v6.0.1 Release Notes
Release Date: 2018-11-11 // over 5 years ago-
🔋 Features
- 💅 #257 The
.centered
presentation style, which is a shortcut for a specific configuration of thePhysicsAnimation
animator, provides a physics-based dismissal gesture where the view can be flung off screen. When the view goes out of the container view's bounds, the animator callsSwiftMessages.hide()
, which animates the dim view away and concludes the message view's lifecycle. There is currently a small delay of 0.2s before callinghide()
.
🔧 This change adds the ability to configure the delay by customizing the animator. For example, to set the delay to zero, one would do:
let animation = PhysicsAnimation() animation.panHandler.hideDelay = 0 config.presentationStyle = .custom(animator: animation)
- 💅 #257 The