Display Webpage in iOS App (Swift 5.0.1/Xcode 10.2.1)

Display Webpage in iOS App (Swift 5.0.1/Xcode 10.2.1)

Channel:
Subscribers:
1,100
Published on ● Video Link: https://www.youtube.com/watch?v=Xv_lg9CKML4



Duration: 2:38
1,499 views
26


This short 2 minute and thirty second video shows you the required steps to take to display a webpage in an iPhone app in 2019. This tutorial will work with SSL and non-SSL pages (https and http). Since 2016, Apple has required that iOS apps use HTTPS by default, however, a simple edit to the projects info.plist can change that.

Code for ViewController.swift:

let webView = WKWebView(frame: view.frame)
view.addSubview(webView)

let url = URL(string: "http://techmaster.3utilities.com/wavebuddha")!
let request = URLRequest(url: url)
webView.load(request)







Tags:
how
to
display
webpage
in
an
ios
app
iphone
website
swift
xcode
safari
without
http
https
any
working
easy
fast
quick