tvOS version in basic app settings
This commit is contained in:
parent
0b171c97a8
commit
e1763390cc
|
@ -24,16 +24,31 @@ struct BasicAppSettingsView: View {
|
|||
|
||||
var body: some View {
|
||||
Form {
|
||||
|
||||
Section {
|
||||
Picker(L10n.appearance, selection: $appAppearance) {
|
||||
ForEach(self.viewModel.appearances, id: \.self) { appearance in
|
||||
Text(appearance.localizedName).tag(appearance.rawValue)
|
||||
Button {} label: {
|
||||
HStack {
|
||||
Text("Version")
|
||||
Spacer()
|
||||
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
} header: {
|
||||
L10n.accessibility.text
|
||||
Text("About")
|
||||
}
|
||||
|
||||
// TODO: Implement once design is theme appearance friendly
|
||||
// Section {
|
||||
// Picker(L10n.appearance, selection: $appAppearance) {
|
||||
// ForEach(self.viewModel.appearances, id: \.self) { appearance in
|
||||
// Text(appearance.localizedName).tag(appearance.rawValue)
|
||||
// }
|
||||
// }
|
||||
// } header: {
|
||||
// L10n.accessibility.text
|
||||
// }
|
||||
|
||||
Button {
|
||||
resetTapped = true
|
||||
} label: {
|
||||
|
|
|
@ -160,6 +160,7 @@ struct SettingsView: View {
|
|||
}
|
||||
}
|
||||
|
||||
Section {
|
||||
Button {} label: {
|
||||
HStack {
|
||||
Text("Version")
|
||||
|
@ -168,6 +169,9 @@ struct SettingsView: View {
|
|||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
} header: {
|
||||
Text("About")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue