iOS add about to basic app settings

This commit is contained in:
Ethan Pippin 2022-01-20 22:53:14 -07:00
parent 1a7bef0579
commit 0b171c97a8
2 changed files with 19 additions and 0 deletions

View File

@ -16,7 +16,14 @@ final class BasicAppSettingsCoordinator: NavigationCoordinatable {
@Root
var start = makeStart
@Route(.push)
var about = makeAbout
@ViewBuilder
func makeAbout() -> some View {
AboutView()
}
@ViewBuilder
func makeStart() -> some View {
BasicAppSettingsView(viewModel: BasicAppSettingsViewModel())

View File

@ -30,6 +30,18 @@ struct BasicAppSettingsView: View {
var body: some View {
Form {
Button {
basicAppSettingsRouter.route(to: \.about)
} label: {
HStack {
Text("About")
.foregroundColor(.primary)
Spacer()
Image(systemName: "chevron.right")
}
}
Section {
Picker(L10n.appearance, selection: $appAppearance) {
ForEach(self.viewModel.appearances, id: \.self) { appearance in