Fixed that on AccountsTab NavigationBar is hidden but on child views it gets displayed

This commit is contained in:
dankito 2020-07-17 23:04:34 +02:00
parent 2552f0fa11
commit 0d1ecb910c
3 changed files with 6 additions and 3 deletions

View File

@ -32,6 +32,7 @@ struct AccountTransactionsDialog: View {
}
}
.navigationBarTitle(Text(title), displayMode: NavigationBarItem.TitleDisplayMode.inline)
.navigationBarHidden(false)
}
}

View File

@ -32,7 +32,8 @@ struct AccountsTab: View {
}
.padding()
}
.navigationBarTitle(Text(""), displayMode: .inline)
.navigationBarHidden(true)
.navigationBarTitle(Text("Accounts"), displayMode: .inline)
}
}
}

View File

@ -48,6 +48,7 @@ struct AddAccountDialog: View {
Alert(title: message.title, message: message.message, dismissButton: message.primaryButton)
}
.navigationBarTitle(Text("Add account"), displayMode: NavigationBarItem.TitleDisplayMode.inline)
.navigationBarHidden(false)
}