All Versions
Latest Version
Avg Release Cycle
59 days
Latest Release

Changelog History
Page 1

  • v8.0.0

    🔄 Changes

    • ➕ Add SwiftMessages.PresentationContext.windowScene option for targeting a specific window scene.
    • 💅 Changed the behavior of the default presentationContext, .automatic. Previously, if the root view controller was presenting, the message would only be displayed over the presented view controller if the modalPresentationStyle was fullScreen or overFullScreen. Now, messages are always displayed over presented view controllers.
    • Made showDuraton and hideDuration on Animator non-optional.
    • Made showDuraton and hideDuration writable options on TopBottomAnimation and PhysicsAnimation.

    🛠 Fixes

    • #365 Fix an issue with customized TopBottomAnimation where messages weren't properly displayed under navigation and tab bars.
  • v7.0.1

    September 19, 2019

    🔄 Changes

    • 👌 Support iOS 13.

    🔋 Features

    • 🏁 #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.
  • v7.0.0

    May 23, 2019

    🔄 Changes

    • Swift 5
    • ✂ Remove deprecated APIs

    🔋 Features

    • #313 Improved sizing on iPad

    0️⃣ > SwiftMessagesSegue provides default view controller sizing based on device, with width on iPad being limited to 500pt max. However, it is recommended that you explicitly specify size appropriate for your content using one of the following methods.

    1. Define sufficient width and height constraints in your view controller such that it sizes itself. 🏗 > 2. Set the preferredContentSize property (a.k.a "Use Preferred Explicit Size" in Interface Builder's attribute inspector). Zeros are ignored, e.g. CGSize(width: 0, height: 350) only affects the height.
    2. Add explicit width and/or height constraints to segue.messageView.backgroundView.

    Note that Layout.topMessage and Layout.bottomMessage are always full screen width. For other layouts, the there is a maximum 500pt width on for regular horizontal size class (iPad) at 950 priority. This limit can be overridden by adding higher-priority constraints.

    • #275 Add ability to avoid the keyboard.

    The KeyboardTrackingView class can be used to cause the message view to avoid the keyboard by sliding up when the keyboard gets too close.

    0️⃣ > // Message viewvar config = SwiftMessages.defaultConfigconfig.keyboardTrackingView = KeyboardTrackingView()// Or view controllersegue.keyboardTrackingView = KeyboardTrackingView()

    👀 > You can incorporate KeyboardTrackingView into your app even when you're not using SwiftMessages. Install into your view hierarchy by pinning KeyboardTrackingView to the bottom, leading, and trailing edges of the screen. Then pin the bottom of your content that should avoid the keyboard to the top KeyboardTrackingView. Use an equality constraint to strictly track the keyboard or an inequality constraint to only move when the keyboard gets too close. KeyboardTrackingView works by observing keyboard notifications and adjusting its height to maintain its top edge above the keyboard, thereby pushing your content up. See the comments in KeyboardTrackingView for configuration options.

    • #276 Add ability to hide message without animation
    • #272 Add duration for SwiftMessagesSegue
    • #278 Make pan gesture recognizers public
  • v6.0.2

    December 26, 2018

    🔋 Features

    • #262 Add event listeners to SwiftMessagesSegue.
  • v6.0.1

    November 11, 2018

    🔋 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)
  • v6.0.0

    September 20, 2018

    🔄 Changes

    • Migrate to Swift 4.2

    🛠 Fixes

    • 🛠 Fix #228 restore shared SwiftMessages scheme
  • v5.0.1

    September 03, 2018

    🛠 Fixes

    • ✂ Remove debug code that broke the view controller's section of the Demo app.
  • v5.0.0

    August 29, 2018

    💥 Breaking Changes

    • ✂ Removed support for iOS 8.

    🔋 Features

    • ➕ Add support for modal view controller presentation using SwiftMessagesSegue custom segue subclass. Try it out in the "View Controllers" section of the Demo app. In addition to the class documentation, more can be found in the View Controllers readme.
    • ⚡️ Update nib files to be more visually consistent with iPhone X:
      • Introduce CornerRoundingView, which provides configurable corner rounding using squircles (the smoother method of rounding corners that you see on app icons). Nib files that feature rounded corners have their backgroundView assigned to a CornerRoundingView. CornerRoundingView provides a roundsLeadingCorners option to dynamically round only the leading corners of the view when presented from top or bottom (a feature used for the tab-style layouts).
      • Increased the default corner radius to 20. Corner radius can be changed by either modifying the nib file or
    • 🔧 Reworked the MarginAdjustable to improve configurability of layout margins.
    • ➕ Add rubber-banding to the interactive dismissal gesture. Rubber banding is automatically applied for views where backgroundView is inset from the message view's edges.
    • ➕ Added showDuration and hideDuration properties to the Animator protocol (with default implementation that returns nil). These values enable animations to work for view controller presentation.

    🛠 Fixes

    • #202 bodyLabel should set textAlignment to .natural
    • #200 Automatic Presentation Context Broken
    • 🛠 Fix default value of TopBottomAnimation.closePercentThreshold
  • v4.1.4

    May 25, 2018

    🐛 Bug Fixes

    • 🛠 Fix #191 Prevent usage of UIApplication.shared when building for extensions

    👌 Improvements

    • #192 Add a way to test compilation with app extension
  • v4.1.3

    May 23, 2018

    🔋 Features

    • 👍 #183 Added iOS app extension support at compile time.

    🐛 Bug Fixes

    • 🛠 Fix #185 Incorrect margin adjustments in landscape
    • 🛠 Fix #188 Physics animation visual glitch