Mercurial > public > geoquiz
comparison GeoQuiz/SettingsModalView.swift @ 30:eb23effeede7
add DatasetView
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 10 Nov 2022 11:51:52 +0100 |
parents | 3f4b366d476d |
children | 9d6dd0e59c22 |
comparison
equal
deleted
inserted
replaced
29:f5a2c2dab208 | 30:eb23effeede7 |
---|---|
36 } footer: { | 36 } footer: { |
37 Text("Number of lives at the beginning of each game.") | 37 Text("Number of lives at the beginning of each game.") |
38 } | 38 } |
39 | 39 |
40 Section { | 40 Section { |
41 Toggle("Haptics", isOn: $userController.data.haptics) | |
42 Toggle("Sound effects", isOn: $userController.data.sound) | |
43 } | |
44 | |
45 Section { | |
41 Picker("Flag shape", selection: $userController.data.guessTheFlagShape) { | 46 Picker("Flag shape", selection: $userController.data.guessTheFlagShape) { |
42 ForEach(GuessTheFlagShape.allCases, id: \.self) { shape in | 47 ForEach(GuessTheFlagShape.allCases, id: \.self) { shape in |
43 Text(shape.localizedName) | 48 Text(shape.localizedName) |
44 .tag(shape) | 49 .tag(shape) |
45 } | 50 } |
47 } header: { | 52 } header: { |
48 Text("Guess the flag game") | 53 Text("Guess the flag game") |
49 } | 54 } |
50 | 55 |
51 Section { | 56 Section { |
52 Toggle("Haptics", isOn: $userController.data.haptics) | 57 Link(destination: URL(string: "https://dennistech.io")!) { |
53 Toggle("Sound effects", isOn: $userController.data.sound) | 58 SettingsRow( |
54 } header: { | 59 color: .mayaBlue, |
55 Text("Effects") | 60 symbol: "person.fill", |
56 } | 61 text: "About" |
57 | 62 ) |
58 Section { | 63 } |
59 SettingsRow( | |
60 color: .mayaBlue, | |
61 symbol: "person.fill", | |
62 text: "About", | |
63 url: URL(string: "https://dennistech.io")! | |
64 ) | |
65 | 64 |
66 SettingsRow( | 65 NavigationLink(destination: DatasetView()) { |
67 color: .atomicTangerine, | 66 SettingsRow( |
68 symbol: "ant.fill", | 67 color: .atomicTangerine, |
69 text: "Report bugs", | 68 symbol: "square.stack.3d.up.fill", |
70 url: URL(string: "mailto:dmartin@dennistech.io")! | 69 text: "Dataset" |
71 ) | 70 ) |
71 } | |
72 | 72 |
73 SettingsRow( | 73 Link(destination: URL(string: "mailto:dmartin@dennistech.io")!) { |
74 color: .blueBell, | 74 SettingsRow( |
75 symbol: "message.fill", | 75 color: .chinaPink, |
76 text: "Twitter", | 76 symbol: "ant.fill", |
77 url: URL(string: "https://twitter.com/dennistech_")! | 77 text: "Report bugs" |
78 ) | 78 ) |
79 } header: { | 79 } |
80 Text("Get in touch") | 80 |
81 Link(destination: URL(string: "https://twitter.com/dennistech_")!) { | |
82 SettingsRow( | |
83 color: .blueBell, | |
84 symbol: "message.fill", | |
85 text: "Twitter" | |
86 ) | |
87 } | |
81 } footer: { | 88 } footer: { |
82 HStack { | 89 HStack { |
83 Spacer() | 90 Spacer() |
84 VStack { | 91 VStack { |
85 Text("© 2022 Dennis Technologies Ltd.") | 92 Text("© 2022 Dennis Technologies Ltd.") |