Mercurial > public > geoquiz
view 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 source
// // SettingsModalView-ViewModel.swift // GeoQuiz // // Created by Dennis Concepción Martín on 9/11/22. // import Foundation extension SettingsModalView { 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 } } }