Skip to content

Commit

Permalink
Fixed Xcode 15 build
Browse files Browse the repository at this point in the history
  • Loading branch information
orchetect committed Dec 15, 2024
1 parent f5cb1b3 commit e911e64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import SwiftUI

@MainActor // required for Xcode 15 builds
extension View {
/// Provides introspection on the underlying window presented by `MenuBarExtra`.
/// Add this view modifier to the top level of the View that occupies the `MenuBarExtra` content.
Expand Down
2 changes: 2 additions & 0 deletions Sources/MenuBarExtraAccess/MenuBarExtraAccess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Combine
@available(iOS, unavailable)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
@MainActor // required for Xcode 15 builds
extension Scene {
/// Adds a presentation state binding to `MenuBarExtra`.
/// If more than one MenuBarExtra are used in the app, provide the sequential index number of the `MenuBarExtra`.
Expand All @@ -37,6 +38,7 @@ extension Scene {
@available(iOS, unavailable)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
@MainActor // required for Xcode 15 builds
struct MenuBarExtraAccess<Content: Scene>: Scene {
let index: Int
let statusItemIntrospection: (@MainActor @Sendable (_ statusItem: NSStatusItem) -> Void)?
Expand Down

0 comments on commit e911e64

Please sign in to comment.