Skip to content

Commit 04184e9

Browse files
committed
Unified logging
1 parent a3cad3f commit 04184e9

8 files changed

Lines changed: 303 additions & 249 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ UltraKiosk.xcodeproj/xcuserdata
22
UltraKiosk.xcodeproj/project.xcworkspace/xcuserdata
33
UltraKiosk.xcodeproj/project.xcworkspace/
44
.DS_Store
5+
.vscode

UltraKiosk/ContentView.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,21 @@ struct ContentView: View {
1414

1515
var body: some View {
1616
ZStack {
17+
// Keep WebView alive and just control visibility
18+
KioskWebView()
19+
.environmentObject(kioskManager)
20+
.environmentObject(settings)
21+
.opacity(kioskManager.isScreensaverActive ? 0 : 1)
22+
.animation(.easeInOut(duration: 0.5), value: kioskManager.isScreensaverActive)
23+
.allowsHitTesting(!kioskManager.isScreensaverActive)
24+
25+
// Screensaver overlay
1726
if kioskManager.isScreensaverActive {
1827
ScreensaverView()
1928
.environmentObject(kioskManager)
2029
.environmentObject(faceDetectionManager)
2130
.environmentObject(settings)
22-
} else {
23-
KioskWebView()
24-
.environmentObject(kioskManager)
25-
.environmentObject(settings)
31+
.transition(.opacity)
2632
}
2733

2834
// Settings Access (Hidden gesture area)

0 commit comments

Comments
 (0)