SwiftUI: How to Display Web Page Using WKWebView
It is very common that you need to display web content in your apps. The iOS SDK provides three options for developers to show web content: Mobile Safari, WKWebView, and SFSafariViewController. In iOS 14 (or later), the SwiftUI...
How to Resolve “Couldn’t instantiate class named WKWebView” Error When Using WebKit
I got a question from a reader about the following error when using WKWebView in storyboard: Could not instantiate class named WKWebView because no class named WKWebView was found; the class needs to be defined in source code or...
A Look at the WebKit Framework in iOS 8 – Part 2
In the first part of the WebKit tutorial, we covered the basics of the WebKit framework. In this tutorial, we’ll dive deeper into WebKit and look at how we can customize web pages loaded by our native app. We’ll also...
A Look at the WebKit Framework – Part 1
If you’ve ever built an application that required a webview to load web content in your native app, then you have probably experienced the frustrations that came with using UIWebView. UIWebView is quite limited and its...