Skip to content

Commit 32bd570

Browse files
committed
d
1 parent 69b3c6a commit 32bd570

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Binary file not shown.

PakePlus/ContentView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import SwiftUI
99

1010
struct ContentView: View {
1111
var body: some View {
12-
BottomMenuView()
12+
// BottomMenuView()
13+
WebView(url: URL(string: "https://www.baidu.com")!)
14+
.ignoresSafeArea()
1315
}
1416
}
1517

PakePlus/WebView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,10 @@ struct WebView: UIViewRepresentable {
6161
webView.goForward()
6262
}
6363
}
64+
65+
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
66+
print("didFinish navigation: \(String(describing: webView.url))")
67+
// currentURL = webView.url
68+
}
6469
}
6570
}

0 commit comments

Comments
 (0)