Skip to content

Commit

Permalink
Update Readers.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
aheze authored Nov 27, 2022
1 parent 0081560 commit 1bac95a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/SwiftUI/Readers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ public struct WindowReader<Content: View>: View {
}

public var body: some View {
view(UIApplication.shared.keyWindow) // TODO - Get the actual window to support iPadOS multiwindow
view(windowViewModel.window)
.background(
WindowHandlerRepresentable(windowViewModel: windowViewModel)
)
}

/// A wrapper view to read the parent window.
Expand Down

0 comments on commit 1bac95a

Please sign in to comment.