UIWebView

UIWebView.playground is an starting point to experiment with UIWebView in an interactive playground:

UIView

import UIKit
import PlaygroundSupport

class WebViewController : UIViewController {

    override func loadView() {

        let webView = UIWebView()
        webView.loadHTMLString("<a href='http://www.example.com/'>Hello world</a>", baseURL: nil)

        self.view = webView
    }

}

PlaygroundPage.current.liveView = WebViewController()
iOS Training Schulung Workshop
Nächste iOS-Schulung:
24. – 28. Juni 2019
Frankfurt am Main
iOS Buch
iOS 12-Apps entwickeln mit Swift & Xcode 10