SwiftMessages v6.0.1 Release Notes

Release Date: 2018-11-11 // over 2 years ago
  • ๐Ÿ”‹ Features

    • ๐Ÿ’… #257 The .centered presentation style, which is a shortcut for a specific configuration of the PhysicsAnimation 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 calls SwiftMessages.hide(), which animates the dim view away and concludes the message view's lifecycle. There is currently a small delay of 0.2s before calling hide().

    ๐Ÿ”ง 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)