We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc9e39b commit ac42468Copy full SHA for ac42468
Sources/UIKitBackend/UIKitBackend+Window.swift
@@ -113,8 +113,12 @@ extension UIKitBackend {
113
// area insets aren't even part of the window.
114
// If/when this is updated, ``RootViewController`` and ``WidgetProtocolHelpers`` will
115
// also need to be updated.
116
+
117
+ //MARK: changed for now, understandably will have to be patched.
118
if #available(iOS 11, *) {
- let size = window.safeAreaLayoutGuide.layoutFrame.size
119
+ //let size = window.safeAreaLayoutGuide.layoutFrame.size
120
+ //return SIMD2(Int(size.width), Int(size.height))
121
+ let size = window.bounds.size
122
return SIMD2(Int(size.width), Int(size.height))
123
} else {
124
let size = window.bounds.size
0 commit comments