Commit 3bee8e4717
3bee8e4717ef4b29526dde747270248b346a354c
parent: 4e56233305
Unsigned
cmc <hello@cleberg.net> · 2026-03-24 21:44 UTC
chore: rename unused protocol params to _ across UIKit representables
Layout: unified · split
Hutch/Extensions/SRHTShareUI.swift
+2 −2
| @@ -52,11 +52,11 @@ struct SRHTShareButton<Label: View>: View { |
| 52 | private struct ShareSheet: UIViewControllerRepresentable { |
52 | private struct ShareSheet: UIViewControllerRepresentable { |
| 53 | let activityItems: [Any] |
53 | let activityItems: [Any] |
| 54 | |
54 | |
| 55 | func makeUIViewController(context: Context) -> UIActivityViewController { |
55 | func makeUIViewController(context _: Context) -> UIActivityViewController { |
| 56 | UIActivityViewController(activityItems: activityItems, applicationActivities: nil) |
56 | UIActivityViewController(activityItems: activityItems, applicationActivities: nil) |
| 57 | } |
57 | } |
| 58 | |
58 | |
| 59 | func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) { |
59 | func updateUIViewController(_ : UIActivityViewController, context _: Context) { |
| 60 | // UIActivityViewController is fully configured in makeUIViewController. |
60 | // UIActivityViewController is fully configured in makeUIViewController. |
| 61 | // No state-driven updates are required. |
61 | // No state-driven updates are required. |
| 62 | } |
62 | } |
Hutch/Views/Builds/BuildTaskLogView.swift
+2 −2
| @@ -92,7 +92,7 @@ struct BuildTaskLogView: View { |
| 92 | private struct BuildLogTextView: UIViewRepresentable { |
92 | private struct BuildLogTextView: UIViewRepresentable { |
| 93 | let text: String |
93 | let text: String |
| 94 | |
94 | |
| 95 | func makeUIView(context: Context) -> UITextView { |
95 | func makeUIView(context _: Context) -> UITextView { |
| 96 | let textView = UITextView() |
96 | let textView = UITextView() |
| 97 | textView.isEditable = false |
97 | textView.isEditable = false |
| 98 | textView.isSelectable = true |
98 | textView.isSelectable = true |
| @@ -110,7 +110,7 @@ private struct BuildLogTextView: UIViewRepresentable { |
| 110 | return textView |
110 | return textView |
| 111 | } |
111 | } |
| 112 | |
112 | |
| 113 | func updateUIView(_ uiView: UITextView, context: Context) { |
113 | func updateUIView(_ uiView: UITextView, context _: Context) { |
| 114 | guard uiView.text != text else { return } |
114 | guard uiView.text != text else { return } |
| 115 | uiView.text = text |
115 | uiView.text = text |
| 116 | } |
116 | } |
Hutch/Views/Inbox/ThreadDetailView.swift
+2 −2
| @@ -277,7 +277,7 @@ private struct MailComposeView: UIViewControllerRepresentable { |
| 277 | return controller |
277 | return controller |
| 278 | } |
278 | } |
| 279 | |
279 | |
| 280 | func updateUIViewController(_ uiViewController: UIViewController, context: Context) { |
280 | func updateUIViewController(_ : UIViewController, context _: Context) { |
| 281 | // The view controller is fully configured in makeUIViewController. |
281 | // The view controller is fully configured in makeUIViewController. |
| 282 | // No state-driven updates are required. |
282 | // No state-driven updates are required. |
| 283 | } |
283 | } |
| @@ -339,7 +339,7 @@ private final class MailUnavailableViewController: UIViewController { |
| 339 | } |
339 | } |
| 340 | |
340 | |
| 341 | @available(*, unavailable) |
341 | @available(*, unavailable) |
| 342 | required init?(coder: NSCoder) { |
342 | required init?(coder _: NSCoder) { |
| 343 | fatalError("init(coder:) has not been implemented") |
343 | fatalError("init(coder:) has not been implemented") |
| 344 | } |
344 | } |
| 345 | |
345 | |
Hutch/Views/Repositories/ReadmeView.swift
+3 −3
| @@ -1140,7 +1140,7 @@ private final class HTMLWebViewCoordinator: NSObject, WKNavigationDelegate, @unc |
| 1140 | self.parent = parent |
1140 | self.parent = parent |
| 1141 | } |
1141 | } |
| 1142 | |
1142 | |
| 1143 | func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { |
1143 | func webView(_ webView: WKWebView, didFinish _: WKNavigation!) { |
| 1144 | DispatchQueue.main.async { |
1144 | DispatchQueue.main.async { |
| 1145 | self.parent.loadError = nil |
1145 | self.parent.loadError = nil |
| 1146 | } |
1146 | } |
| @@ -1151,11 +1151,11 @@ private final class HTMLWebViewCoordinator: NSObject, WKNavigationDelegate, @unc |
| 1151 | } |
1151 | } |
| 1152 | } |
1152 | } |
| 1153 | |
1153 | |
| 1154 | func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) { |
1154 | func webView(_: WKWebView, didFail _: WKNavigation!, withError error: Error) { |
| 1155 | handleLoadFailure(error) |
1155 | handleLoadFailure(error) |
| 1156 | } |
1156 | } |
| 1157 | |
1157 | |
| 1158 | func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error) { |
1158 | func webView(_: WKWebView, didFailProvisionalNavigation _: WKNavigation!, withError error: Error) { |
| 1159 | handleLoadFailure(error) |
1159 | handleLoadFailure(error) |
| 1160 | } |
1160 | } |
| 1161 | |
1161 | |