johnxnguyen / Down

Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark.
Other
2.24k stars 319 forks source link

Added example for working with SwiftUI #260

Open MrWoWander opened 3 years ago

MrWoWander commented 3 years ago

I suggest adding an example of working with SwiftUI to Down-Example, because people are starting to switch to it and the need is growing (at one time, I myself asked a question about this in the issues :blush:)

This example demonstrates working with DownView and with Down.toAttributedString

P.S. - Attribute line down by default uses the standard Styler class, so until PR #258 is adopted no images will be displayed

codecov[bot] commented 3 years ago

Codecov Report

Merging #260 (df0f21e) into master (bf24fcb) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #260   +/-   ##
=======================================
  Coverage   91.31%   91.31%           
=======================================
  Files          60       60           
  Lines        1059     1059           
=======================================
  Hits          967      967           
  Misses         92       92           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bf24fcb...df0f21e. Read the comment docs.