Last active
April 3, 2019 13:26
-
-
Save Fedenieto90/8970a23d74e0895af3fc5b44a909ecf9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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