Skip to content

Commit

Permalink
Modified loadInitialURL(to:) to loadInitialURL(in:)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed May 14, 2024
1 parent 901b882 commit dbb5b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/WebUI/WebView+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/WebUI/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit dbb5b5c

Please sign in to comment.