From df1ce4fd3a6c617c4afee08ea8ac81a54cedbd76 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 22 Sep 2020 04:03:44 +0200 Subject: [PATCH] Committing changes to Core Data now as Xcode didn't save them before --- .../BankingiOSApp.xcdatamodel/contents | 5 +++-- .../ui/dialogs/AccountTransactionsDialog.swift | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/BankingiOSApp.xcdatamodeld/BankingiOSApp.xcdatamodel/contents b/ui/BankingiOSApp/BankingiOSApp/BankingiOSApp.xcdatamodeld/BankingiOSApp.xcdatamodel/contents index ec59f0e1..d626e986 100644 --- a/ui/BankingiOSApp/BankingiOSApp/BankingiOSApp.xcdatamodeld/BankingiOSApp.xcdatamodel/contents +++ b/ui/BankingiOSApp/BankingiOSApp/BankingiOSApp.xcdatamodeld/BankingiOSApp.xcdatamodel/contents @@ -47,8 +47,9 @@ - + + @@ -90,7 +91,7 @@ - + diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift index 2f59cb3d..259ad119 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift @@ -261,6 +261,14 @@ struct AccountTransactionsDialog: View { } } + private func mapDate(_ date: CommonDate?) -> String { + if let date = date?.date { + return Self.RetrievedTransactionsPeriodDateFormat.string(from: date) + } + + return "" + } + private func filterTransactions(_ query: String) { self.filteredTransactions = presenter.searchSelectedAccountTransactions(query: query).sorted { $0.valueDate.date > $1.valueDate.date }