Implemented displaying value date

This commit is contained in:
dankito 2020-07-26 19:05:09 +02:00
parent 615c8e214d
commit b2b11b17bd
1 changed files with 14 additions and 2 deletions

View File

@ -4,6 +4,15 @@ import BankingUiSwift
struct AccountTransactionListItem: View {
private static var ValueDateFormat: DateFormatter = {
let formatter = DateFormatter()
formatter.dateStyle = .short
return formatter
}()
let transaction: AccountTransaction
@ -23,8 +32,11 @@ struct AccountTransactionListItem: View {
Spacer()
VStack(alignment: .trailing) {
Text(self.presenter.formatAmount(amount: transaction.amount))
//Text(transaction.valueDate)
Text(presenter.formatAmount(amount: transaction.amount))
Spacer()
Text(Self.ValueDateFormat.string(from: transaction.valueDate.date))
}
}
}