diff options
Diffstat (limited to 'Hutch/Views/Repositories/FileTreeView.swift')
| -rw-r--r-- | Hutch/Views/Repositories/FileTreeView.swift | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Hutch/Views/Repositories/FileTreeView.swift b/Hutch/Views/Repositories/FileTreeView.swift index 462a25e..ec33822 100644 --- a/Hutch/Views/Repositories/FileTreeView.swift +++ b/Hutch/Views/Repositories/FileTreeView.swift @@ -260,7 +260,9 @@ private struct FileTreeContentView: View { FileContentShareSheet(activityItems: [text]) } .alert("Share Unavailable", isPresented: $showShareUnavailableAlert) { - Button("OK", role: .cancel) {} + Button("OK", role: .cancel) { + // no-op: .cancel role handles alert dismissal + } } message: { Text(SRHTShareTarget.file.fallbackMessage) } @@ -403,7 +405,9 @@ struct FileContentShareSheet: UIViewControllerRepresentable { UIActivityViewController(activityItems: activityItems, applicationActivities: nil) } - func updateUIViewController(_ : UIActivityViewController, context _: Context) {} + func updateUIViewController(_ : UIActivityViewController, context _: Context) { + // no-op: UIActivityViewController manages its own state after presentation + } } final class CodeFileUIView: UIView { |
