From 5d8d0d19df06c5335165843f7cbfe78547ce9d60 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 16 Sep 2019 05:42:36 -0500 Subject: [PATCH] Refactor account tag determination so that SwiftUI would stop freaking out --- iOS/Settings/SettingsView.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/iOS/Settings/SettingsView.swift b/iOS/Settings/SettingsView.swift index cbdfe2910..0c35eddb5 100644 --- a/iOS/Settings/SettingsView.swift +++ b/iOS/Settings/SettingsView.swift @@ -16,6 +16,8 @@ struct SettingsView : View { @Environment(\.viewController) private var viewController: UIViewController? @Environment(\.sceneCoordinator) private var coordinator: SceneCoordinator? + + @State private var accountAction: Int? = nil @State private var isWebsitePresented: Bool = false @State private var website: String? = nil @@ -39,16 +41,14 @@ struct SettingsView : View { } } - @State private var accountAction: Int? = nil - func buildAccountsSection() -> some View { Section(header: Text("ACCOUNTS").padding(.top, 22.0)) { - ForEach(0..