1
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {
var webView: WKWebView!
override func loadView() {
let webConfiguration = WKWebViewConfiguration()
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let myURL = URL(string:"http://177.220.153.190:8080/solerp/")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}}
Hello Wenerson. Please describe the problem in more detail. What is not working? Does the code compile? Is there an error in the Xcode logs?
– Rafael Leão
This code above is compiling Rafael yes. However I need to enter some method or function so that the field of the website login screen receives the user and password to make an automatic login. And that’s what I need, because I don’t know where to start. Would you help me.?
– Wenerson Venâncio