diff --git a/NucleicRemote/NucleicRemote/Views/SettingsView.swift b/NucleicRemote/NucleicRemote/Views/SettingsView.swift index d5281f8..04bb3fa 100644 --- a/NucleicRemote/NucleicRemote/Views/SettingsView.swift +++ b/NucleicRemote/NucleicRemote/Views/SettingsView.swift @@ -14,6 +14,18 @@ struct SettingsView: View { var body: some View { NavigationStack { Form { + if store.demoMode { + Section { + Button(role: .destructive) { store.exitDemo() } label: { + Label("Leave demo", systemImage: "arrow.uturn.left") + } + } header: { + Text("Demo") + } footer: { + Text("You're exploring Nucleic with sample data and a simulated agent. Leave the demo to pair with your Mac.") + } + } + Section { Picker("Theme", selection: $appearanceRaw) { ForEach(AppAppearance.allCases) { appearance in