Fixed that on AccountsTab NavigationBar is hidden but on child views it gets displayed
This commit is contained in:
parent
2552f0fa11
commit
0d1ecb910c
|
@ -32,6 +32,7 @@ struct AccountTransactionsDialog: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationBarTitle(Text(title), displayMode: NavigationBarItem.TitleDisplayMode.inline)
|
.navigationBarTitle(Text(title), displayMode: NavigationBarItem.TitleDisplayMode.inline)
|
||||||
|
.navigationBarHidden(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,4 +43,4 @@ struct AccountTransactionsDialog_Previews: PreviewProvider {
|
||||||
BUCAccountTransaction(bankAccount: previewBanks[0].accounts[0], amount: CommonBigDecimal(double: 1234.56), currency: "€", unparsedUsage: "Usage", bookingDate: CommonDate(year: 2020, month: 5, day: 7), otherPartyName: "Marieke Musterfrau", otherPartyBankCode: nil, otherPartyAccountId: nil, bookingText: "SEPA Ueberweisung", valueDate: CommonDate(year: 2020, month: 5, day: 7))
|
BUCAccountTransaction(bankAccount: previewBanks[0].accounts[0], amount: CommonBigDecimal(double: 1234.56), currency: "€", unparsedUsage: "Usage", bookingDate: CommonDate(year: 2020, month: 5, day: 7), otherPartyName: "Marieke Musterfrau", otherPartyBankCode: nil, otherPartyAccountId: nil, bookingText: "SEPA Ueberweisung", valueDate: CommonDate(year: 2020, month: 5, day: 7))
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,8 @@ struct AccountsTab: View {
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
.navigationBarTitle(Text(""), displayMode: .inline)
|
.navigationBarHidden(true)
|
||||||
|
.navigationBarTitle(Text("Accounts"), displayMode: .inline)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,4 +43,4 @@ struct AccountsTab_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
AccountsTab()
|
AccountsTab()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@ struct AddAccountDialog: View {
|
||||||
Alert(title: message.title, message: message.message, dismissButton: message.primaryButton)
|
Alert(title: message.title, message: message.message, dismissButton: message.primaryButton)
|
||||||
}
|
}
|
||||||
.navigationBarTitle(Text("Add account"), displayMode: NavigationBarItem.TitleDisplayMode.inline)
|
.navigationBarTitle(Text("Add account"), displayMode: NavigationBarItem.TitleDisplayMode.inline)
|
||||||
|
.navigationBarHidden(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue