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

    messageID

    The message ID.

    title

    The title to use until the message is loaded.

    showBackButton

    Flag to show or hide the back button. If not set, back button will be displayed if it has a presentationMode.

    dismissAction

    A dismiss action.

  • Initializer.

    Declaration

    Swift

    @MainActor
    public init(
        viewModel: MessageCenterMessageViewModel,
        title: String? = nil,
        showBackButton: Bool? = nil,
        dismissAction: (@MainActor () -> Void)? = nil
    )

    Parameters

    viewModel

    The message center message view model.

    title

    The title to use until the message is loaded.

    showBackButton

    Flag to show or hide the back button. If not set, back button will be displayed if it has a presentationMode.

    dismissAction

    A dismiss action.

  • The body of the view.

    Declaration

    Swift

    @MainActor
    public var body: some View { get }