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

This commit is contained in:
dankito 2020-08-04 23:22:16 +02:00
parent eadd77e047
commit 62c3677769
1 changed files with 5 additions and 3 deletions

View File

@ -20,15 +20,17 @@ struct AccountsTab: View {
} }
} }
} }
Spacer() Spacer()
NavigationLink(destination: AddAccountDialog()) { NavigationLink(destination: LazyView(AddAccountDialog())) {
Text("Add account") Text("Add account")
} }
.frame(height: 35)
Spacer() Spacer()
} }
.background(Color(UIColor.systemGroupedBackground))
} }
} }