Your HTML is static / hardcoded right?
Put all the HTML into a single variable (get rid of the empty markdown string)
Call parser.html() on that variable.
Pass the return value from parser.html() into loadHTMLString()
Do all of steps 1 - 3 directly inside of the updateUIView() function. I'm not sure why you havethe ParseContent class. Just get rid of it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: