A very flexible message bar for UIKit and SwiftUI.
.swiftMessage()
modifier that takes a view builder instead of requiring that the bound value conform to MessageViewConvertible
. This syntax is more similar to the familiar sheet()
modifier syntax and provides more flexibility for constructing message views.@MainActor
to ensure that SwiftMessages is not called from a background queue..swiftMessage()
modifier that takes a view builder instead of requiring that the bound value conform to MessageViewConvertible
. This syntax is more similar to the familiar sheet()
modifier syntax and provides more flexibility for constructing message views.@MainActor
to ensure that SwiftMessages is not called from a background queue..sheet()
like variation to the .swiftMessage()
modifier that takes a view builder. This provides more flexibility for constructing message views.Fixes
KeyboardTrackingView
to continue tracking the keyboard even when not installed in the view hierarchy.UIView
associated type to Event
, e.g. willShow(UIView)
so that event listeners can inspect the view.Event.id: String?
property so that event listeners can reason about the view's ID.iMessageDemo
project's use of CocoaPods and the automatically generated SwiftMessages
framework scheme created by CocoaPods. The podfile was modified to delete this scheme, but Carthage users may need to run pod install
on the iMessagesDemo
project, if they have CocoaPods installed, or manually delete the iMessageDemo/Pods/Pods.xcodeproj/xcuserdata
folder.