From 0af8646fd52cbf6646557e8049ee380915f72c99 Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Tue, 27 Dec 2022 08:27:38 -0400 Subject: [PATCH] Swap order of Logout and Cancel alert buttons To conform to Apple's Human Interface Guidelines Closes: #159 Changelog-Fixed: Swapped order of Logout and Cancel alert buttons --- damus/Views/ConfigView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/damus/Views/ConfigView.swift b/damus/Views/ConfigView.swift index eea1e05..8879810 100644 --- a/damus/Views/ConfigView.swift +++ b/damus/Views/ConfigView.swift @@ -102,12 +102,12 @@ struct ConfigView: View { .navigationTitle("Settings") .navigationBarTitleDisplayMode(.large) .alert("Logout", isPresented: $confirm_logout) { - Button("Logout") { - notify(.logout, ()) - } Button("Cancel") { confirm_logout = false } + Button("Logout") { + notify(.logout, ()) + } } message: { Text("Make sure your nsec account key is saved before you logout or you will lose access to this account") }