Compare commits

...

1 Commits

Author SHA1 Message Date
Nick Klockenga
6d169199d3
add privacy overlay when app lock is on 2026-04-01 21:38:29 -04:00

View File

@ -39,6 +39,12 @@ struct ContentView: View {
if shouldShowLock {
AppLockView(lockVM: lockVM, modelContext: modelContext)
}
// Privacy screen hides content in app switcher when app lock is enabled
if appLockEnabled, scenePhase == .inactive, !shouldShowLock {
PrivacyOverlayView()
.transition(.opacity)
}
}
.onAppear {
// If wallets exist but none are active (e.g. after a failed delete),
@ -80,6 +86,33 @@ struct ContentView: View {
}
}
// MARK: - Privacy Overlay
private struct PrivacyOverlayView: View {
var body: some View {
ZStack {
Color.hbBackground
.ignoresSafeArea()
Image("WelcomeIcon")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 120, height: 120)
.clipShape(RoundedRectangle(cornerRadius: 28, style: .continuous))
.overlay(
RoundedRectangle(cornerRadius: 28, style: .continuous)
.stroke(Color.hbBackground, lineWidth: 24)
.blur(radius: 12)
.clipShape(RoundedRectangle(cornerRadius: 28, style: .continuous))
)
.overlay(
RoundedRectangle(cornerRadius: 28, style: .continuous)
.strokeBorder(Color.hbBorder.opacity(0.5), lineWidth: 1)
)
}
}
}
// MARK: - Lock Screen
private struct AppLockView: View {