iOS add about to basic app settings
This commit is contained in:
parent
1a7bef0579
commit
0b171c97a8
|
@ -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())
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue