diff --git a/Sources/SwiftNavigation/ButtonState.swift b/Sources/SwiftNavigation/ButtonState.swift index 86fec8a1f..451353ee5 100644 --- a/Sources/SwiftNavigation/ButtonState.swift +++ b/Sources/SwiftNavigation/ButtonState.swift @@ -321,6 +321,7 @@ extension ButtonState: Sendable where Action: Sendable {} /// - button: Button state. /// - action: An action closure that is invoked when the button is tapped. @available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) + @MainActor public init(_ button: ButtonState, action: @escaping (Action?) -> Void) { self.init( role: button.role.map(ButtonRole.init),