From 724478a80afe8d7ae05d5e84cea5c76ed9eb6597 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Mon, 4 Jan 2021 14:25:02 -0500 Subject: [PATCH] Add link to write a review in the App Store --- Shared/Models/WriteFreelyModel.swift | 1 + .../angelo.xcuserdatad/xcschemes/xcschememanagement.plist | 4 ++-- iOS/Settings/SettingsView.swift | 7 ++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Shared/Models/WriteFreelyModel.swift b/Shared/Models/WriteFreelyModel.swift index b53da10..8cb36dd 100644 --- a/Shared/Models/WriteFreelyModel.swift +++ b/Shared/Models/WriteFreelyModel.swift @@ -29,6 +29,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 reviewURL = URL(string: "https://apps.apple.com/app/id1531530896?action=write-review")! let licensesURL = URL(string: "https://github.com/writeas/writefreely-swiftui-multiplatform/tree/main/Shared/Resources/Licenses")! // swiftlint:enable line_length diff --git a/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist b/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist index 2723ebe..6cd8075 100644 --- a/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,12 +7,12 @@ WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_ orderHint - 0 + 1 WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_ orderHint - 1 + 0 diff --git a/iOS/Settings/SettingsView.swift b/iOS/Settings/SettingsView.swift index 0d825f4..e64bc94 100644 --- a/iOS/Settings/SettingsView.swift +++ b/iOS/Settings/SettingsView.swift @@ -13,7 +13,7 @@ struct SettingsView: View { Section(header: Text("Appearance")) { PreferencesView(preferences: model.preferences) } - Section(header: Text("Support Links")) { + Section(header: Text("External Links")) { HStack { Spacer() Link("View the Guide", destination: model.howToURL) @@ -24,6 +24,11 @@ struct SettingsView: View { Link("Visit the Help Forum", destination: model.helpURL) Spacer() } + HStack { + Spacer() + Link("Write a Review on the App Store", destination: model.reviewURL) + Spacer() + } } Section(header: Text("Acknowledgements")) { VStack {