Merge pull request #109 from writeas/ios-add-howto-link

Add link to how-to guide for iOS app
This commit is contained in:
Angelo Stavrow 2020-10-27 13:12:05 -04:00 committed by GitHub
commit e7dff39905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -38,6 +38,7 @@ class WriteFreelyModel: ObservableObject {
// swiftlint:disable line_length
let helpURL = URL(string: "https://discuss.write.as/c/help/5")!
let howToURL = URL(string: "https://discuss.write.as/t/using-the-writefreely-ios-app/1946")!
let licensesURL = URL(string: "https://github.com/writeas/writefreely-swiftui-multiplatform/tree/main/Shared/Resources/Licenses")!
// swiftlint:enable line_length

View File

@ -13,10 +13,15 @@ struct SettingsView: View {
Section(header: Text("Appearance")) {
PreferencesView(preferences: model.preferences)
}
Section(header: Text("Support")) {
Section(header: Text("Support Links")) {
HStack {
Spacer()
Link("Visit Help Forum", destination: model.helpURL)
Link("View the Guide", destination: model.howToURL)
Spacer()
}
HStack {
Spacer()
Link("Visit the Help Forum", destination: model.helpURL)
Spacer()
}
}