File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-native/Libraries/SwiftExtensions Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,17 @@ public struct RCTMainWindow: Scene {
3737/**
3838 Handles data sharing between React Native and SwiftUI views.
3939 */
40- struct WindowHandlingModifier : ViewModifier {
40+ public struct WindowHandlingModifier : ViewModifier {
4141 typealias UserInfoType = Dictionary < String , AnyHashable >
4242
4343 @Environment ( \. reactContext) private var reactContext
4444 @Environment ( \. openWindow) private var openWindow
4545 @Environment ( \. dismissWindow) private var dismissWindow
4646 @Environment ( \. supportsMultipleWindows) private var supportsMultipleWindows
4747
48- func body( content: Content ) -> some View {
48+ public init ( ) { }
49+
50+ public func body( content: Content ) -> some View {
4951 // Attach listeners only if app supports multiple windows
5052 if supportsMultipleWindows {
5153 content
You can’t perform that action at this time.
0 commit comments