Implemented displaying value date
This commit is contained in:
parent
615c8e214d
commit
b2b11b17bd
|
@ -4,6 +4,15 @@ import BankingUiSwift
|
||||||
|
|
||||||
struct AccountTransactionListItem: View {
|
struct AccountTransactionListItem: View {
|
||||||
|
|
||||||
|
private static var ValueDateFormat: DateFormatter = {
|
||||||
|
let formatter = DateFormatter()
|
||||||
|
|
||||||
|
formatter.dateStyle = .short
|
||||||
|
|
||||||
|
return formatter
|
||||||
|
}()
|
||||||
|
|
||||||
|
|
||||||
let transaction: AccountTransaction
|
let transaction: AccountTransaction
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,8 +32,11 @@ struct AccountTransactionListItem: View {
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
VStack(alignment: .trailing) {
|
VStack(alignment: .trailing) {
|
||||||
Text(self.presenter.formatAmount(amount: transaction.amount))
|
Text(presenter.formatAmount(amount: transaction.amount))
|
||||||
//Text(transaction.valueDate)
|
|
||||||
|
Spacer()
|
||||||
|
|
||||||
|
Text(Self.ValueDateFormat.string(from: transaction.valueDate.date))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue