Closed petkrein closed 1 year ago
Hi @petkrein,
Please consider that a Markdown
view comprises multiple subviews (usually text, images, and containers), so the lineSpacing
modifier might not work as you expect when you apply it directly to it.
Instead, you can make these customizations at a block level (paragraph, heading, etc.), which is very powerful because you can customize the line spacing, the top and bottom margins, and many other things.
This post will give you all the details.
Since this is not an issue, I am moving it to a discussion in case you want to follow up with more questions.
Line spacing doesn't seem to work. Neither '.lineSpacing(1.2)' nor via your custom view modifier '.relativeLineSpacing(.em(0.9))'.
It would be nice if you show me how to manipulate the line spacing.
Example 1:
Example 2:
Version information