From dbb5b5c7782c36c83c8b11c3d25f18dba5753445 Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Tue, 14 May 2024 18:28:47 +0900 Subject: [PATCH] Modified loadInitialURL(to:) to loadInitialURL(in:) --- Sources/WebUI/WebView+Extension.swift | 2 +- Sources/WebUI/WebView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/WebUI/WebView+Extension.swift b/Sources/WebUI/WebView+Extension.swift index fe245bb..1efd846 100644 --- a/Sources/WebUI/WebView+Extension.swift +++ b/Sources/WebUI/WebView+Extension.swift @@ -22,7 +22,7 @@ extension WebView: View { let webView = EnhancedWKWebView(frame: .zero, configuration: parent.configuration) proxy.setUp(webView) parent.applyModifiers(to: webView) - parent.loadInitialURL(to: webView) + parent.loadInitialURL(in: webView) return webView } diff --git a/Sources/WebUI/WebView.swift b/Sources/WebUI/WebView.swift index 360a4a2..7c7c435 100644 --- a/Sources/WebUI/WebView.swift +++ b/Sources/WebUI/WebView.swift @@ -109,7 +109,7 @@ public struct WebView { } @MainActor - func loadInitialURL(to webView: EnhancedWKWebView) { + func loadInitialURL(in webView: EnhancedWKWebView) { if let initialURL { webView.load(URLRequest(url: initialURL)) }