This works for me
webView.loadHTMLString(htmlContent, baseURL: Bundle.main.resourceURL)
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: