File tree 1 file changed +4
-2
lines changed
packages/react-native/Libraries/SwiftExtensions
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 {
37
37
/**
38
38
Handles data sharing between React Native and SwiftUI views.
39
39
*/
40
- struct WindowHandlingModifier : ViewModifier {
40
+ public struct WindowHandlingModifier : ViewModifier {
41
41
typealias UserInfoType = Dictionary < String , AnyHashable >
42
42
43
43
@Environment ( \. reactContext) private var reactContext
44
44
@Environment ( \. openWindow) private var openWindow
45
45
@Environment ( \. dismissWindow) private var dismissWindow
46
46
@Environment ( \. supportsMultipleWindows) private var supportsMultipleWindows
47
47
48
- func body( content: Content ) -> some View {
48
+ public init ( ) { }
49
+
50
+ public func body( content: Content ) -> some View {
49
51
// Attach listeners only if app supports multiple windows
50
52
if supportsMultipleWindows {
51
53
content
You can’t perform that action at this time.
0 commit comments