Could anyone please help me out with video or codes with steps for one app having multiple webview and further static slides arrangements in webview.
multiple web view in one app (eg:- one app with facebook, google and yahoo)
Here is an example for two webViews in one viewController:
import UIKit
import WebKit
class ViewController: UIViewController {
@IBOutlet weak var webViewA: WKWebView!
@IBOutlet weak var webViewB: WKWebView!
let urlA: String = "https:/
let urlB: String = "https:/
override func viewDidLoad() {
super.viewDidLoad()
let myURLA = URL(string: urlA)
let myURLB = URL(string: urlB)
let myRequestA = URLRequest(url: myURLA!)
let myRequestB = URLRequest(url: myURLB!)
webViewA.load(myRequestA)
webViewB.load(myRequestB)
webViewA.allowsBackForwardNavigationGestures = true
webViewB.allowsBackForwardNavigationGestures = true
}
}Just put 2 WKWebViews in your Viewcontroller, create the outlets and use the code above.
You can also navigate through the websites.