Mercurial > public > geoquiz
diff GeoQuiz/SettingsModalView.swift @ 27:3f4b366d476d
add flag layout settings
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 10 Nov 2022 09:26:48 +0100 |
parents | 425078c01194 |
children | eb23effeede7 |
line wrap: on
line diff
--- a/GeoQuiz/SettingsModalView.swift Wed Nov 09 10:30:01 2022 +0100 +++ b/GeoQuiz/SettingsModalView.swift Thu Nov 10 09:26:48 2022 +0100 @@ -32,12 +32,23 @@ } } } header: { - Text("Game") + Text("General") } footer: { Text("Number of lives at the beginning of each game.") } Section { + Picker("Flag shape", selection: $userController.data.guessTheFlagShape) { + ForEach(GuessTheFlagShape.allCases, id: \.self) { shape in + Text(shape.localizedName) + .tag(shape) + } + } + } header: { + Text("Guess the flag game") + } + + Section { Toggle("Haptics", isOn: $userController.data.haptics) Toggle("Sound effects", isOn: $userController.data.sound) } header: { @@ -45,28 +56,42 @@ } Section { - FormLink( + SettingsRow( color: .mayaBlue, - symbol: "info.circle.fill", + symbol: "person.fill", text: "About", url: URL(string: "https://dennistech.io")! ) - FormLink( + SettingsRow( color: .atomicTangerine, - symbol: "ant.circle.fill", + symbol: "ant.fill", text: "Report bugs", url: URL(string: "mailto:dmartin@dennistech.io")! ) - FormLink( + SettingsRow( color: .blueBell, - symbol: "message.circle.fill", + symbol: "message.fill", text: "Twitter", url: URL(string: "https://twitter.com/dennistech_")! ) } header: { Text("Get in touch") + } footer: { + HStack { + Spacer() + VStack { + Text("© 2022 Dennis Technologies Ltd.") + Text("Proud to be indie.") + + if let versionNumber = getVersion() { + Text("Version \(versionNumber)") + } + } + Spacer() + } + .padding(.top) } } .navigationTitle("Settings")