5
|
1 //
|
|
2 // SettingsModalView.swift
|
|
3 // GeoQuiz
|
|
4 //
|
|
5 // Created by Dennis Concepción Martín on 22/9/22.
|
|
6 //
|
|
7
|
|
8 import SwiftUI
|
|
9
|
|
10 struct SettingsModalView: View {
|
|
11 @Environment(\.dismiss) var dismiss
|
|
12
|
|
13 var body: some View {
|
|
14 NavigationView {
|
|
15 Form {
|
7
|
16 Section {
|
|
17 // Difficulty
|
|
18 } header: {
|
|
19 Text("Game")
|
|
20 } footer: {
|
|
21 Text("The harder the difficulty the less lives you get.")
|
|
22 }
|
|
23
|
|
24 Section {
|
|
25 // Toggle to disable haptics
|
|
26 // Toggle to disable sound effects
|
|
27 } header: {
|
|
28 Text("Effects")
|
|
29 }
|
|
30
|
|
31 Section {
|
|
32 // About
|
|
33 // Report bugs
|
|
34 // Twitter
|
|
35 } header: {
|
|
36 Text("Get in touch")
|
|
37 }
|
5
|
38 }
|
|
39 .navigationTitle("Settings")
|
|
40 .toolbar {
|
|
41 ToolbarItem(placement: .cancellationAction) {
|
|
42 Button {
|
|
43 dismiss()
|
|
44 } label: {
|
|
45 Label("Exit", systemImage: "multiply")
|
|
46 }
|
|
47 }
|
|
48 }
|
|
49 }
|
|
50 }
|
|
51 }
|
|
52
|
|
53 struct SettingsModalView_Previews: PreviewProvider {
|
|
54 static var previews: some View {
|
|
55 SettingsModalView()
|
|
56 }
|
|
57 }
|