Rizwan
09/15/2023, 5:32 AMimport UIKit
import WebKit
public class MyWebViewViewController: UIViewController, WKNavigationDelegate {
var webView: WKWebView!
override func loadView() {
webView = WKWebView()
webView.navigationDelegate = self
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let url = URL(string: "<https://www.example.com>") // Replace with your desired URL
let request = URLRequest(url: url!)
webView.load(request)//dsds
}
// WKNavigationDelegate methods can be implemented here for handling web view navigation events
}
if any one know this please thanks in advanceRizwan
09/15/2023, 10:10 AMJeff Lockhart
09/15/2023, 3:28 PM@objc
attribute, from Kotlin. But you'll need to compile it as a framework and add the framework to your project to generate Kotlin bindings via C interop. I recently described how to do this here.Rizwan
09/15/2023, 4:04 PM