1// DuressEmptyView.swift2// SophaxChat3//4// Shown when the duress PIN was entered. Looks like the real app but has no data.5// The user can "use" it normally — nothing is stored, no messages appear.6// Exiting back to the lock screen and entering the real PIN restores normal operation.78import SwiftUI910struct DuressEmptyView: View {11@EnvironmentObject var appState: AppState1213 var body: some View {14 NavigationStack {15 List {16// Intentionally empty — presents the same shell as ChatListView17}18.navigationTitle("Messages")19.toolbar {20 ToolbarItem(placement:.primaryAction){21 Image(systemName:"square.and.pencil")22.foregroundStyle(.secondary)23}24 ToolbarItem(placement:.navigationBarLeading){25 Image(systemName:"gear")26.foregroundStyle(.secondary)27}28}29.overlay {30// Subtle empty-state label — matches what new users see31 VStack(spacing: 12){32 Image(systemName:"bubble.left.and.bubble.right")33.font(.system(size: 48))34.foregroundStyle(.quaternary)35 Text("No messages yet")36.font(.title3.weight(.medium))37.foregroundStyle(.secondary)38 Text("Go nearby someone running SophaxChat\nto start a conversation.")39.font(.subheadline)40.foregroundStyle(.tertiary)41.multilineTextAlignment(.center)42}43}44}45}46}