avoid using UIScreen.main

This commit is contained in:
Samuel Newman
2026-04-20 14:44:38 +03:00
parent e829b7a83e
commit 6275bda96e
2 changed files with 6 additions and 4 deletions
@@ -29,7 +29,7 @@ class ExpoBlueskyContextMenuView: ExpoView, UIContextMenuInteractionDelegate {
override var bounds: CGRect {
get {
let b = super.bounds
let s = UIScreen.main.scale
let s = self.window?.screen.scale ?? UIScreen.main.scale
return CGRect(
x: b.origin.x,
y: b.origin.y,