diff Simoleon/Persistence.swift @ 21:c3dda63f50ed v1.1

Added Core Data and UI changes - Implement Watchlist - Change conversion design - Improve UX
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Mon, 19 Jul 2021 19:27:12 +0100
parents e0c2bda6c51f
children 933d9ab04374
line wrap: on
line diff
--- a/Simoleon/Persistence.swift	Mon Jul 19 10:12:23 2021 +0100
+++ b/Simoleon/Persistence.swift	Mon Jul 19 19:27:12 2021 +0100
@@ -17,6 +17,11 @@
             let newItem = Item(context: viewContext)
             newItem.timestamp = Date()
         }
+        
+        for _ in 0..<10 {
+            let favourite = Favourite(context: viewContext)
+            favourite.currencyPair = "USD/GBP"
+        }
         do {
             try viewContext.save()
         } catch {