a native ios client for gitbay

client ios swift

https://gitbay.org

Commit af4bf316f0

af4bf316f07a8a23c20b0787cc8d691ef80af557

parent: 51b6a14eab

Verified · cmc

cmc <hello@cleberg.net> · 2026-08-28T19:38:53Z

org readme: let the navigation delegate match, so links leave the web view

The decision handler is @MainActor in the SDK. Without it the method only
nearly matched the optional requirement, so WKNavigationDelegate never
called it and the .linkActivated branch never ran: tapping a link
navigated the embedded web view instead of opening the browser, inside a
frame sized to the README with scrolling off and no way back.
gitbay/Views/Repos/OrgReadmeWebView.swift +1 −1
@@ -226,7 +226,7 @@ private struct OrgWebRepresentable: UIViewRepresentable {
226226 func webView(
227227 _ webView: WKWebView,
228228 decidePolicyFor action: WKNavigationAction,
229 decisionHandler: @escaping (WKNavigationActionPolicy) -> Void
229 decisionHandler: @escaping @MainActor (WKNavigationActionPolicy) -> Void
230230 ) {
231231 if action.navigationType == .linkActivated, let url = action.request.url {
232232 parent.openURL(url)