Skip to content

Commit 56d8e38

Browse files
committed
fix Immersion/passthrough
1 parent fa30a66 commit 56d8e38

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.swiftpm/xcode/xcshareddata/xcschemes/MuMenu.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1620"
3+
LastUpgradeVersion = "1630"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

Sources/MuMenu/Touch/TouchViewRepresentable.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ public struct TouchViewRepresentable: UIViewRepresentable {
2727
return touchesView
2828
}
2929
public func updateUIView(_ touchesView: TouchesView, context: Context) {
30-
if touchesView.frame != .zero {
31-
let aspect = touchesView.frame.size.aspect
32-
TouchViewRepresentable.aspect = aspect
33-
for callAspect in TouchViewRepresentable.callAspects {
34-
callAspect(aspect)
35-
}
30+
let aspect = touchesView.frame.size.aspect
31+
TouchViewRepresentable.aspect = aspect
32+
for callAspect in TouchViewRepresentable.callAspects {
33+
callAspect(aspect)
3634
}
3735
DebugLog { P("📋 updateUIView touchesView\(touchesView.frame.digits(0))") }
3836
}

0 commit comments

Comments
 (0)