Mercurial > public > geoquiz
comparison 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 |
comparison
equal
deleted
inserted
replaced
30:eb23effeede7 | 31:9d6dd0e59c22 |
---|---|
6 // | 6 // |
7 | 7 |
8 import Foundation | 8 import Foundation |
9 | 9 |
10 extension SettingsModalView { | 10 extension SettingsModalView { |
11 func getVersion() -> String? { | 11 class ViewModel { |
12 return Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String | 12 var lives: [Int] { |
13 var lives = [Int]() | |
14 for i in stride(from: 5, to: 55, by: 5) { | |
15 lives.append(i) | |
16 } | |
17 | |
18 return lives | |
19 } | |
20 | |
21 func getVersion() -> String? { | |
22 return Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String | |
23 } | |
13 } | 24 } |
14 } | 25 } |