mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-15 21:10:59 +00:00
24 lines
698 B
Swift
24 lines
698 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import SwiftUI
|
|
|
|
struct PreferencesView: View {
|
|
@StateObject var viewModel: PreferencesViewModel
|
|
|
|
var body: some View {
|
|
Form {
|
|
Section(header: Text(viewModel.handle)) {
|
|
NavigationLink("preferences.posting-reading",
|
|
destination: PostingReadingPreferencesView(
|
|
viewModel: viewModel.postingReadingPreferencesViewModel()))
|
|
}
|
|
}
|
|
.navigationTitle("preferences")
|
|
}
|
|
}
|
|
|
|
struct PreferencesView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
PreferencesView(viewModel: .development)
|
|
}
|
|
}
|