Last active
April 3, 2019 13:15
-
-
Save Fedenieto90/1e37ea43902f52770709f0ecac876d24 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 | |
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