summaryrefslogtreecommitdiff
path: root/DomainDig
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-25 11:45:32 -0500
committerChristian Cleberg <[email protected]>2026-07-25 11:49:23 -0500
commit45741a51601a3075ad825795be2dc36a637ac742 (patch)
treee49a4518964021531dc4e1f459e143ff53e7d0d3 /DomainDig
parent269d9590711144057a9f579761c30ff903a75eec (diff)
downloaddomain-dig-45741a51601a3075ad825795be2dc36a637ac742.tar.gz
domain-dig-45741a51601a3075ad825795be2dc36a637ac742.tar.bz2
domain-dig-45741a51601a3075ad825795be2dc36a637ac742.zip
fix: point Rate at the App Store and drop the empty Legal section (#56)
- Rate DomainDig now opens the App Store write-review URL (AppLinks.writeReview, derived from the real app id) instead of the in-app StoreKit prompt, so an explicit tap always reaches the review composer. Drops the now-unused StoreKit import and requestReview environment. - The copyright line moves into the "Support the App" section footer, removing the empty Section content closure SonarCloud flagged (swift:S1186).
Diffstat (limited to 'DomainDig')
-rw-r--r--DomainDig/AppInfoView.swift15
1 files changed, 6 insertions, 9 deletions
diff --git a/DomainDig/AppInfoView.swift b/DomainDig/AppInfoView.swift
index 749c066..055fe46 100644
--- a/DomainDig/AppInfoView.swift
+++ b/DomainDig/AppInfoView.swift
@@ -1,14 +1,11 @@
-import StoreKit
import SwiftUI
/// Settings → App Info. Shows app/build metadata and links out to docs, source,
/// privacy, support, and the App Store. The actionable rows are driven by a
/// single declarative `AppInfoRow` model so titles, icons, and destinations live
-/// in one place; only the Rate and Share rows are special-cased (a StoreKit
-/// action and a `ShareLink` view, respectively).
+/// in one place; only the Share row is special-cased (a `ShareLink` view).
struct AppInfoView: View {
@Environment(\.openURL) private var openURL
- @Environment(\.requestReview) private var requestReview
@State private var cloudSyncService = CloudSyncService.shared
@State private var activeSheet: AppInfoSheet?
@@ -29,20 +26,20 @@ struct AppInfoView: View {
ForEach(supportRows) { row($0) }
}
- Section("Support the App") {
+ Section {
Button {
- requestReview()
+ openURL(AppLinks.writeReview)
} label: {
Label("Rate DomainDig", systemImage: "star")
}
+ .accessibilityHint("Opens the App Store")
ShareLink(item: AppLinks.appStoreListing) {
Label("Share DomainDig", systemImage: "square.and.arrow.up")
}
.accessibilityHint("Opens the share sheet")
- }
-
- Section {
+ } header: {
+ Text("Support the App")
} footer: {
Text(AppLinks.copyright)
.frame(maxWidth: .infinity, alignment: .center)