MessageCenterMessageView
@MainActor
public struct MessageCenterMessageView : View
The Message Center message view
-
Default constructor
Declaration
Swift
@MainActor public init( messageID: String, title: String?, dismissAction: (() -> Void)? = nil )
Parameters
messageID
The message ID to load
title
The title. If not set the title will be loaded from the message.
dismissAction
Optional action to dismiss the message view message.
-
Declaration
Swift
@ViewBuilder @MainActor public var body: some View { get }