Skip to content

Commit 12d2379

Browse files
authored
Merge pull request #782 from Iterable/MOB-9021-Remove-Webview-Protocol-method
[MOB-9021] - Remove protocol method
2 parents 827b2fa + 9a061b3 commit 12d2379

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

swift-sdk/Internal/WebViewProtocol.swift

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ protocol WebViewProtocol {
1717
@discardableResult func loadHTMLString(_ string: String, baseURL: URL?) -> WKNavigation?
1818
func set(position: ViewPosition)
1919
func set(navigationDelegate: WKNavigationDelegate?)
20-
func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)?)
2120
func layoutSubviews()
2221
func calculateHeight() -> Pending<CGFloat, IterableError>
2322
}

tests/common/MockWebView.swift

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ class MockWebView: WebViewProtocol {
2323

2424
func set(navigationDelegate _: WKNavigationDelegate?) {}
2525

26-
func evaluateJavaScript(_: String, completionHandler: ((Any?, Error?) -> Void)?) {
27-
completionHandler?(height, nil)
28-
}
29-
3026
func layoutSubviews() {}
3127

3228
func calculateHeight() -> Pending<CGFloat, IterableError> {

0 commit comments

Comments
 (0)