Skip to content

Instantly share code, notes, and snippets.

@Fedenieto90
Last active April 3, 2019 13:15
Show Gist options
  • Save Fedenieto90/1e37ea43902f52770709f0ecac876d24 to your computer and use it in GitHub Desktop.
Save Fedenieto90/1e37ea43902f52770709f0ecac876d24 to your computer and use it in GitHub Desktop.
import UIKit
class TypeFormHelper: NSObject {
struct Constants {
static let TypeForm = "TypeForm"
static let html = "html"
}
static func getTypeFormHtml() -> String? {
let htmlFile = Bundle.main.path(forResource: Constants.TypeForm, ofType: Constants.html)
let html = try? String(contentsOfFile: htmlFile!, encoding: String.Encoding.utf8)
return html
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment