Created
October 20, 2017 14:43
-
-
Save stfalconaleks/cd79d7a4aabbda0a336a064d27b4a28b to your computer and use it in GitHub Desktop.
This file contains 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
let pathToCss = Bundle.main.path(forResource: "styles", ofType: "css") | |
cell.webView.loadHTMLString(HtmlHelper.fontExplanation(questionTitle: questionTitle, | |
question: question, | |
wrongTitle: item!.is_correct! == false ? "YOUR ANSWER — | |
WRONG" : "", | |
wrongAnswer: item!.is_correct! == false ? wrongText : nil, | |
correctTitle: item!.is_correct! == false ? "CORRECT | |
ANSWER" : "YOUR ANSWER - CORRECT", | |
correctAnswer: correctText, | |
explanationTitle: "EXPLANATION", | |
explanation: explanationText, | |
isCorrect: item!.is_correct!), | |
baseURL: URL(string: pathToCss!)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment