MessageCenterMessageViewWithNavigation
@MainActor
public struct MessageCenterMessageViewWithNavigation : View
A view that displays a message as well as modifies the toolbars and navigation title.
-
Initializer.
Declaration
Swift
@MainActor public init( messageID: String, title: String? = nil, showBackButton: Bool? = nil, dismissAction: (@MainActor () -> Void)? = nil )Parameters
messageIDThe message ID.
titleThe title to use until the message is loaded.
showBackButtonFlag to show or hide the back button. If not set, back button will be displayed if it has a presentationMode.
dismissActionA dismiss action.
-
Initializer.
Declaration
Swift
@MainActor public init( viewModel: MessageCenterMessageViewModel, title: String? = nil, showBackButton: Bool? = nil, dismissAction: (@MainActor () -> Void)? = nil )Parameters
viewModelThe message center message view model.
titleThe title to use until the message is loaded.
showBackButtonFlag to show or hide the back button. If not set, back button will be displayed if it has a presentationMode.
dismissActionA dismiss action.
-
The body of the view.
Declaration
Swift
@MainActor public var body: some View { get }
View on GitHub