File tree Expand file tree Collapse file tree 6 files changed +24
-0
lines changed
Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 44// © 2023 Steffan Andrews • Licensed under MIT License
55//
66
7+ #if os(macOS)
8+
79import SwiftUI
810
911extension View {
@@ -25,3 +27,5 @@ extension View {
2527 }
2628 }
2729}
30+
31+ #endif
Original file line number Diff line number Diff line change 44// © 2023 Steffan Andrews • Licensed under MIT License
55//
66
7+ #if os(macOS)
8+
79import SwiftUI
810import Combine
911
@@ -146,3 +148,5 @@ struct MenuBarExtraAccess<Content: Scene>: Scene {
146148 }
147149 }
148150}
151+
152+ #endif
Original file line number Diff line number Diff line change 44// © 2023 Steffan Andrews • Licensed under MIT License
55//
66
7+ #if os(macOS)
8+
79import AppKit
810import SwiftUI
911import Combine
@@ -311,3 +313,5 @@ extension MenuBarExtraUtils {
311313 return String ( " \( anyView) " . hashValue)
312314 }
313315}
316+
317+ #endif
Original file line number Diff line number Diff line change 44// © 2023 Steffan Andrews • Licensed under MIT License
55//
66
7+ #if os(macOS)
8+
79import AppKit
810import SwiftUI
911
@@ -87,3 +89,5 @@ extension NSStatusItem {
8789 button? . publisher ( for: \. cell!. state, options: [ . initial, . new] )
8890 }
8991}
92+
93+ #endif
Original file line number Diff line number Diff line change 44// © 2023 Steffan Andrews • Licensed under MIT License
55//
66
7+ #if os(macOS)
8+
79import AppKit
810
911extension NSWindow /* actually NSStatusBarWindow but it's a private AppKit type */ {
@@ -16,3 +18,5 @@ extension NSWindow /* actually NSStatusBarWindow but it's a private AppKit type
1618 ?? Mirror ( reflecting: self ) . descendant ( " statusItem " ) as? NSStatusItem
1719 }
1820}
21+
22+ #endif
Original file line number Diff line number Diff line change 44// © 2023 Steffan Andrews • Licensed under MIT License
55//
66
7+ #if os(macOS)
8+
79import SwiftUI
810import Combine
911
@@ -48,3 +50,5 @@ extension Scene {
4850 return nil
4951 }
5052}
53+
54+ #endif
You can’t perform that action at this time.
0 commit comments