Skip to content

Instantly share code, notes, and snippets.

@Fedenieto90
Last active April 3, 2019 13:26
Show Gist options
  • Save Fedenieto90/8970a23d74e0895af3fc5b44a909ecf9 to your computer and use it in GitHub Desktop.
Save Fedenieto90/8970a23d74e0895af3fc5b44a909ecf9 to your computer and use it in GitHub Desktop.
import UIKit
import WebKit
class TypeFormVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
loadHtml()
}
func loadHtml() {
// Create Web View
let webView = WKWebView(frame: view.bounds)
view = webView
// Load embedded HTML typeform file
if let embeddedHTML = TypeFormHelper.getTypeFormHtml() {
webView.loadHTMLString(embeddedHTML, baseURL: nil)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment