diff GeoQuiz/Logic/PersistenceController.swift @ 23:02dcebb8cc4a

fix layout issues
author Dennis C. M. <dennis@denniscm.com>
date Thu, 27 Oct 2022 09:17:13 +0200
parents 56add5561261
children
line wrap: on
line diff
--- a/GeoQuiz/Logic/PersistenceController.swift	Wed Oct 26 08:20:19 2022 +0200
+++ b/GeoQuiz/Logic/PersistenceController.swift	Thu Oct 27 09:17:13 2022 +0200
@@ -18,7 +18,7 @@
         let viewContext = result.container.viewContext
         
         #if DEBUG
-        createMockData(nil, viewContext)
+        createMockData(with: viewContext)
         #endif
 
         return result
@@ -41,7 +41,7 @@
     }
     
     #if DEBUG
-    static func createMockData(_ playedGames: FetchedResults<PlayedGame>?, _ moc: NSManagedObjectContext) {
+    static func createMockData(with moc: NSManagedObjectContext) {
         for _ in 0..<10 {
             let playedGame = PlayedGame(context: moc)