Skip to content

Commit ac42468

Browse files
author
JWI
committed
changed size windows
1 parent bc9e39b commit ac42468

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/UIKitBackend/UIKitBackend+Window.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,12 @@ extension UIKitBackend {
113113
// area insets aren't even part of the window.
114114
// If/when this is updated, ``RootViewController`` and ``WidgetProtocolHelpers`` will
115115
// also need to be updated.
116+
117+
//MARK: changed for now, understandably will have to be patched.
116118
if #available(iOS 11, *) {
117-
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
118122
return SIMD2(Int(size.width), Int(size.height))
119123
} else {
120124
let size = window.bounds.size

0 commit comments

Comments
 (0)