Merge pull request #162 from writeas/add-review-link

Add link to write a review in the App Store
This commit is contained in:
Angelo Stavrow 2021-01-11 09:35:02 -05:00 committed by GitHub
commit ac98cd2030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,7 @@ class WriteFreelyModel: ObservableObject {
// swiftlint:disable line_length // swiftlint:disable line_length
let helpURL = URL(string: "https://discuss.write.as/c/help/5")! 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 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")! let licensesURL = URL(string: "https://github.com/writeas/writefreely-swiftui-multiplatform/tree/main/Shared/Resources/Licenses")!
// swiftlint:enable line_length // swiftlint:enable line_length

View File

@ -13,7 +13,7 @@ struct SettingsView: View {
Section(header: Text("Appearance")) { Section(header: Text("Appearance")) {
PreferencesView(preferences: model.preferences) PreferencesView(preferences: model.preferences)
} }
Section(header: Text("Support Links")) { Section(header: Text("External Links")) {
HStack { HStack {
Spacer() Spacer()
Link("View the Guide", destination: model.howToURL) Link("View the Guide", destination: model.howToURL)
@ -24,6 +24,11 @@ struct SettingsView: View {
Link("Visit the Help Forum", destination: model.helpURL) Link("Visit the Help Forum", destination: model.helpURL)
Spacer() Spacer()
} }
HStack {
Spacer()
Link("Write a Review on the App Store", destination: model.reviewURL)
Spacer()
}
} }
Section(header: Text("Acknowledgements")) { Section(header: Text("Acknowledgements")) {
VStack { VStack {