MessageCenterController
@MainActor
public class MessageCenterController : ObservableObject
Controller for the Message Center.
-
The routes available in the message center.
See moreDeclaration
Swift
public enum Route : Sendable, Hashable -
The navigation path.
Declaration
Swift
@Published @MainActor public var path: [Route] { get set } -
Publisher that emits the message center state.
Declaration
Swift
@MainActor public var statePublisher: AnyPublisher<MessageCenterState, Never> { get } -
Navigates to a message.
Declaration
Swift
@MainActor public func navigate(messageID: String?)Parameters
messageIDThe message ID to navigate to. A
nilvalue will pop to the root view. -
Default initializer.
Declaration
Swift
@MainActor public init()
View on GitHub