diff GeoQuiz/ProfileModalView.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 425078c01194
line wrap: on
line diff
--- a/GeoQuiz/ProfileModalView.swift	Wed Oct 26 08:20:19 2022 +0200
+++ b/GeoQuiz/ProfileModalView.swift	Thu Oct 27 09:17:13 2022 +0200
@@ -80,7 +80,9 @@
             
             #if DEBUG
             .onAppear {
-                PersistenceController.createMockData(playedGames, moc)
+                if playedGames.isEmpty {
+                    PersistenceController.createMockData(with: moc)
+                }
             }
             #endif
         }