MessageCenterController

@MainActor
public class MessageCenterController : ObservableObject

Controller for the Message Center.

  • The routes available in the message center.

    See more

    Declaration

    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

    messageID

    The message ID to navigate to. A nil value will pop to the root view.

  • Default initializer.

    Declaration

    Swift

    @MainActor
    public init()