Changelog History
Page 2
-
v8.0.2 Changes
August 18, 2020๐ Changes
- ๐ฆ #395 Add preliminary support for Swift Package Manager.
-
v8.0.1 Changes
๐ Fixes
- #401 UIAlertController pops up but SwiftMessage layer absorbs all touches.
-
v8.0.0 Changes
July 09, 2020๐ Sorry for taking so long to release this.
๐ 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 themodalPresentationStyle
wasfullScreen
oroverFullScreen
. Now, messages are always displayed over presented view controllers. - Made
showDuraton
andhideDuration
onAnimator
non-optional. - Made
showDuraton
andhideDuration
writable options onTopBottomAnimation
andPhysicsAnimation
.
๐ Fixes
- #365 Fix an issue with customized
TopBottomAnimation
where messages weren't properly displayed under navigation and tab bars. - #352 Fix accessibility for view controllers presented with
SwiftMessagesSegue
. - โก๏ธ #355 Update card view layout to support centering of pure textual content
- ๐
#354 Support
overrideUserInterfaceStyle
when view presented in its own window - #360 Fix touch handing issue in iOS 13.1.3
- โ #382 Fix warnings in Xcode 11.4
- โ Add
-
v7.0.1 Changes
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 Changes
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.- 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. - Add explicit width and/or height constraints to
segue.messageView.backgroundView
.
Note that
Layout.topMessage
andLayout.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 pinningKeyboardTrackingView
to the bottom, leading, and trailing edges of the screen. Then pin the bottom of your content that should avoid the keyboard to the topKeyboardTrackingView
. 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 inKeyboardTrackingView
for configuration options. -
v6.0.2 Changes
December 26, 2018๐ Features
- #262 Add event listeners to
SwiftMessagesSegue
.
- #262 Add event listeners to
-
v6.0.1 Changes
November 11, 2018๐ 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
-
v6.0.0 Changes
September 20, 2018๐ Changes
- Migrate to Swift 4.2
๐ Fixes
- ๐ Fix #228 restore shared SwiftMessages scheme
-
v5.0.1 Changes
September 03, 2018๐ Fixes
- โ Remove debug code that broke the view controller's section of the Demo app.
-
v5.0.0 Changes
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 theirbackgroundView
assigned to aCornerRoundingView
.CornerRoundingView
provides aroundsLeadingCorners
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
- Introduce
- ๐ง 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
andhideDuration
properties to theAnimator
protocol (with default implementation that returnsnil
). These values enable animations to work for view controller presentation.
๐ Fixes