Skip to content

Commit 827d7db

Browse files
committed
Dismiss search control on page change
1 parent fcafd20 commit 827d7db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

devdocs-macos/DocumentationViewController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ class DocumentationViewController:
103103
vc.activate()
104104
}
105105

106+
func hideSearchControl() {
107+
guard let vc = searchCVC else { return }
108+
vc.dismissSearch(self)
109+
}
110+
106111
// MARK:- WKUIDelegate
107112

108113
func webView(_ webView: WKWebView,
@@ -207,6 +212,7 @@ class DocumentationViewController:
207212
return
208213
}
209214
self.documentURL = URL(string: location)
215+
hideSearchControl()
210216
}
211217
}
212218

0 commit comments

Comments
 (0)