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:
parent
eadd77e047
commit
62c3677769
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue