From 62c3677769e186b14c4789078edbe37b48cd2c14 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 4 Aug 2020 23:22:16 +0200 Subject: [PATCH] Fixed that 'Add account' NavigationLink was displayed with white background and that it could not be distinguished from a list item (by giving it a greater height). Also implemented that AddAccountDialog gets created lazily --- ui/BankingiOSApp/BankingiOSApp/ui/views/AccountsTab.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountsTab.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountsTab.swift index 016231f7..88297edc 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountsTab.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountsTab.swift @@ -20,15 +20,17 @@ struct AccountsTab: View { } } } - + Spacer() - NavigationLink(destination: AddAccountDialog()) { + NavigationLink(destination: LazyView(AddAccountDialog())) { Text("Add account") } - + .frame(height: 35) + Spacer() } + .background(Color(UIColor.systemGroupedBackground)) } }