You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can add a DownView to my view (use code below) but how can I update the content inside it?
let cardFrontStr = "Use chained optional to simplify code below,\n\n```\nvar display: UILabel?\nif let label = display {\n if let text = label.text {\n let x = text.hasValue\n // ...\n }\n}\n```"
let cardfrontView = try? DownView(frame: cardfront.bounds, markdownString: cardFrontStr)
cardfront.addSubview(cardfrontView!)
Since the DownView is extended from WebView, I can update the content and loadHTMLString; however, the DownView style is gone after I have done so.
let down = Down(markdownString: "`test`")
let newStr = try? down.toHTML()
cardbackView?.loadHTMLString(newStr!, baseURL: nil)
The text was updated successfully, but these errors were encountered:
I can add a
DownView
to my view (use code below) but how can I update the content inside it?Since the DownView is extended from
WebView
, I can update the content andloadHTMLString
; however, the DownView style is gone after I have done so.The text was updated successfully, but these errors were encountered: