summaryrefslogtreecommitdiff
path: root/Hutch/Extensions
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-24 16:39:15 -0500
committerChristian Cleberg <[email protected]>2026-03-24 16:39:15 -0500
commit8da2f907d690a59124d9008c0d8e1e792133702b (patch)
tree79fcc86662155709fe2beb7b6559270254b96c01 /Hutch/Extensions
parent1f8a13e069ef5ebb7092803870d7152958ceb84e (diff)
downloadhutch-8da2f907d690a59124d9008c0d8e1e792133702b.tar.gz
hutch-8da2f907d690a59124d9008c0d8e1e792133702b.tar.bz2
hutch-8da2f907d690a59124d9008c0d8e1e792133702b.zip
fix: add nested comments to satisfy sonar rule swift:S1186
Diffstat (limited to 'Hutch/Extensions')
-rw-r--r--Hutch/Extensions/SRHTShareUI.swift9
1 files changed, 7 insertions, 2 deletions
diff --git a/Hutch/Extensions/SRHTShareUI.swift b/Hutch/Extensions/SRHTShareUI.swift
index 01f3d91..d09476f 100644
--- a/Hutch/Extensions/SRHTShareUI.swift
+++ b/Hutch/Extensions/SRHTShareUI.swift
@@ -40,7 +40,9 @@ struct SRHTShareButton<Label: View>: View {
}
}
.alert("Share Unavailable", isPresented: $isShowingFallbackAlert) {
- Button("OK", role: .cancel) {}
+ Button("OK", role: .cancel) {
+ // Alert dismissal is implicit; no additional action required.
+ }
} message: {
Text(target.fallbackMessage)
}
@@ -54,5 +56,8 @@ private struct ShareSheet: UIViewControllerRepresentable {
UIActivityViewController(activityItems: activityItems, applicationActivities: nil)
}
- func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {}
+ func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
+ // UIActivityViewController is fully configured in makeUIViewController.
+ // No state-driven updates are required.
+ }
}