Skip to content

Commit 29ca447

Browse files
committed
Fix compilation for macOS
1 parent a6e62be commit 29ca447

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Intermodular/Helpers/AppKit or UIKit/AppKitOrUIKitHostingWindow.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class AppKitOrUIKitHostingWindow<Content: View>: AppKitOrUIKitWindow {
4141
#endif
4242

4343
var _canBecomeKey: Bool = true
44-
var isVisible: Binding<Bool> = .constant(true)
44+
var isVisibleBinding: Binding<Bool> = .constant(true)
4545
var allowTouchesToPassThrough: Bool = false
4646

4747
var windowPosition: CGPoint? {
@@ -213,7 +213,7 @@ fileprivate struct AppKitOrUIKitHostingWindowContent<Content: View>: View {
213213
window?.isHidden = true
214214
#endif
215215

216-
window?.isVisible.wrappedValue = false
216+
window?.isVisibleBinding.wrappedValue = false
217217
}
218218
}
219219
}

Sources/Intramodular/Window/WindowOverlay.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extension WindowOverlay {
118118

119119
contentWindow.rootView = content
120120
contentWindow._canBecomeKey = canBecomeKey
121-
contentWindow.isVisible = isVisible
121+
contentWindow.isVisibleBinding = isVisible
122122

123123
#if os(macOS)
124124
contentWindow.title = ""

0 commit comments

Comments
 (0)