Skip to content

Commit e911e64

Browse files
committed
Fixed Xcode 15 build
1 parent f5cb1b3 commit e911e64

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Sources/MenuBarExtraAccess/MenuBarExtra Window Introspection.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import SwiftUI
1010

11+
@MainActor // required for Xcode 15 builds
1112
extension View {
1213
/// Provides introspection on the underlying window presented by `MenuBarExtra`.
1314
/// Add this view modifier to the top level of the View that occupies the `MenuBarExtra` content.

Sources/MenuBarExtraAccess/MenuBarExtraAccess.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Combine
1313
@available(iOS, unavailable)
1414
@available(tvOS, unavailable)
1515
@available(watchOS, unavailable)
16+
@MainActor // required for Xcode 15 builds
1617
extension Scene {
1718
/// Adds a presentation state binding to `MenuBarExtra`.
1819
/// If more than one MenuBarExtra are used in the app, provide the sequential index number of the `MenuBarExtra`.
@@ -37,6 +38,7 @@ extension Scene {
3738
@available(iOS, unavailable)
3839
@available(tvOS, unavailable)
3940
@available(watchOS, unavailable)
41+
@MainActor // required for Xcode 15 builds
4042
struct MenuBarExtraAccess<Content: Scene>: Scene {
4143
let index: Int
4244
let statusItemIntrospection: (@MainActor @Sendable (_ statusItem: NSStatusItem) -> Void)?

0 commit comments

Comments
 (0)