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
|
@Root
|
||||||
var start = makeStart
|
var start = makeStart
|
||||||
|
@Route(.push)
|
||||||
|
var about = makeAbout
|
||||||
|
|
||||||
|
@ViewBuilder
|
||||||
|
func makeAbout() -> some View {
|
||||||
|
AboutView()
|
||||||
|
}
|
||||||
|
|
||||||
@ViewBuilder
|
@ViewBuilder
|
||||||
func makeStart() -> some View {
|
func makeStart() -> some View {
|
||||||
BasicAppSettingsView(viewModel: BasicAppSettingsViewModel())
|
BasicAppSettingsView(viewModel: BasicAppSettingsViewModel())
|
||||||
|
|
|
@ -30,6 +30,18 @@ struct BasicAppSettingsView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Form {
|
Form {
|
||||||
|
|
||||||
|
Button {
|
||||||
|
basicAppSettingsRouter.route(to: \.about)
|
||||||
|
} label: {
|
||||||
|
HStack {
|
||||||
|
Text("About")
|
||||||
|
.foregroundColor(.primary)
|
||||||
|
Spacer()
|
||||||
|
Image(systemName: "chevron.right")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
Picker(L10n.appearance, selection: $appAppearance) {
|
Picker(L10n.appearance, selection: $appAppearance) {
|
||||||
ForEach(self.viewModel.appearances, id: \.self) { appearance in
|
ForEach(self.viewModel.appearances, id: \.self) { appearance in
|
||||||
|
|
Loading…
Reference in New Issue