gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.26k stars 267 forks source link

Update view when document changes #31

Closed gonzalezreal closed 3 years ago

gonzalezreal commented 3 years ago

Using onAppear to trigger the attributed string rendering causes the view not to update if the parent changes the document.

This PR consist of a refactoring of the Markdown view and its store (renamed to MardownRenderer) to fix #30.