Swift Productions
Published in

Swift Productions

Create a Web View | Xcode 12, Swift 5

An iPhone displaying a web page.
Photo by Szabo Viktor on Unsplash

Creating a web view inside your iOS can be useful to link to any URL such as your privacy policy, your customer support webpage or anything else, plus, it only required a few line of code in Swift thanks to the WebKit framework. Let’s dive in!

Step 1: Create a new View Controller

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store