From eecfd1c402d18f7eb4dec344211041207f112f5b Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 14 Mar 2024 12:47:15 +0800 Subject: [PATCH] Add a button to iOS to leave a rating/review --- .../App/Views/Profile/ProfileView.swift | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift index b394dc0f7..1dda93273 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift @@ -155,12 +155,21 @@ struct ProfileView: View { label: { Text(LocalText.documentationGeneric) } ) - #if os(iOS) - Button( - action: { DataService.showIntercomMessenger?() }, - label: { Text(LocalText.feedbackGeneric) } - ) - #endif +#if os(iOS) + Button( + action: { DataService.showIntercomMessenger?() }, + label: { Text(LocalText.feedbackGeneric) } + ) +#endif + + Button( + action: { + if let url = URL(string: "https://apps.apple.com/app/id1564031042?action=write-review") { + openURL(url) + } + }, + label: { Text("Review Omnivore") } + ) Button( action: { @@ -170,7 +179,9 @@ struct ProfileView: View { }, label: { Text("Join community on Discord") } ) + } + Section { Button( action: { if let url = URL(string: "https://omnivore.app/privacy") {