From bb1c06f84d0007a59a5e73eecd081f98ff4d3bb5 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Wed, 21 Oct 2020 16:54:25 -0400 Subject: [PATCH 1/2] Add how-to link URL to WriteFreelyModel --- Shared/Models/WriteFreelyModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/Models/WriteFreelyModel.swift b/Shared/Models/WriteFreelyModel.swift index c8d7a72..3b98fc7 100644 --- a/Shared/Models/WriteFreelyModel.swift +++ b/Shared/Models/WriteFreelyModel.swift @@ -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 From 94c6280ed3c5ff41b22c86ff99ebf81f2e6900b2 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Wed, 21 Oct 2020 16:57:14 -0400 Subject: [PATCH 2/2] Add guide link and improve description of section and links --- iOS/Settings/SettingsView.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/iOS/Settings/SettingsView.swift b/iOS/Settings/SettingsView.swift index d67a90f..0d825f4 100644 --- a/iOS/Settings/SettingsView.swift +++ b/iOS/Settings/SettingsView.swift @@ -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() } }