diff --git a/BraveShared/BraveStrings.swift b/BraveShared/BraveStrings.swift index e089673e584..6a607b78da9 100644 --- a/BraveShared/BraveStrings.swift +++ b/BraveShared/BraveStrings.swift @@ -455,6 +455,7 @@ public extension Strings { public static let Never_show = NSLocalizedString("NeverShow", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Never show", comment: "tabs bar show/hide option") public static let Always_show = NSLocalizedString("AlwaysShow", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Always show", comment: "tabs bar show/hide option") public static let Show_in_landscape_only = NSLocalizedString("ShowInLandscapeOnly", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Show in landscape only", comment: "tabs bar show/hide option") + public static let Rate_Brave = NSLocalizedString("RateBrave", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Rate Brave", comment: "Open the App Store to rate Brave.") public static let Report_a_bug = NSLocalizedString("ReportABug", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Report a bug", comment: "Show mail composer to report a bug.") public static let Privacy_Policy = NSLocalizedString("PrivacyPolicy", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Privacy Policy", comment: "Show Brave Browser Privacy Policy page from the Privacy section in the settings.") public static let Terms_of_Use = NSLocalizedString("TermsOfUse", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Terms of Use", comment: "Show Brave Browser TOS page from the Privacy section in the settings.") diff --git a/Client/Frontend/Settings/SettingsViewController.swift b/Client/Frontend/Settings/SettingsViewController.swift index 9b90e2b691f..06ea9560669 100644 --- a/Client/Frontend/Settings/SettingsViewController.swift +++ b/Client/Frontend/Settings/SettingsViewController.swift @@ -320,6 +320,15 @@ class SettingsViewController: TableViewController { self.dismiss(animated: true) }, cellClass: MultilineButtonCell.self), + Row(text: Strings.Rate_Brave, + selection: { [unowned self] in + // Rate Brave + guard let writeReviewURL = URL(string: "https://geo.itunes.apple.com/app/id1052879175?action=write-review") + else { return } + UIApplication.shared.open(writeReviewURL) + self.dismiss(animated: true) + }, + cellClass: MultilineValue1Cell.self), Row(text: Strings.Privacy_Policy, selection: { [unowned self] in // Show privacy policy