Web View Using WKWebView iOS Tutorial
WKWebView iOS Tutorial Hi, In today's post, we'll learn how to use WKWebView or simply saying, how to implement web view in iOS applications . I am using Xcode 9 and Swift 4 for this tutorial. So, let's do it using our step by step approach: STEP 1: Open Xcode and create a Single View Application. Give some name to your app, eg. WebViewAppTutorial and make sure to choose Swift as the language, click Next. STEP 2: Here, first we'll embed our app in a navigator controller. For this, just open your Main.storyboard and click on View Controller. Now, select Editor from Xcode Menu bar, and select Embed in > Navigation Controller. STEP 3: Now, open ViewController.swift file and import webkit module. import WebKit Under your ViewController class , add the webView property as: var webView: WKWebView ! Now, in your class declaration, add one WKNavigationDelegate protocol as shown below: class ViewController: UIViewController , WKNav...