diff GeoQuiz/SettingsModalView-ViewModel.swift @ 31:9d6dd0e59c22

remove dataset and add new screenshots
author Dennis C. M. <dennis@denniscm.com>
date Fri, 11 Nov 2022 08:59:02 +0100
parents 3f4b366d476d
children
line wrap: on
line diff
--- a/GeoQuiz/SettingsModalView-ViewModel.swift	Thu Nov 10 11:51:52 2022 +0100
+++ b/GeoQuiz/SettingsModalView-ViewModel.swift	Fri Nov 11 08:59:02 2022 +0100
@@ -8,7 +8,18 @@
 import Foundation
 
 extension SettingsModalView {
-    func getVersion() -> String? {
-        return Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String
+    class ViewModel {
+        var lives: [Int] {
+            var lives = [Int]()
+            for i in stride(from: 5, to: 55, by: 5) {
+                lives.append(i)
+            }
+            
+            return lives
+        }
+        
+        func getVersion() -> String? {
+            return Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String
+        }
     }
 }