gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.53k stars 318 forks source link

Fix bullets in visionOS #308

Closed tapsandswipes closed 6 months ago

tapsandswipes commented 6 months ago

Label does not align the icon with the center of the first line like on iOS. This happens in the simulator so I guess it will happen on ht actual device.

Before the fix: Simulator Screenshot - Apple Vision Pro - 2024-04-13 at 19 41 43

After the fix: Simulator Screenshot - Apple Vision Pro - 2024-04-13 at 19 45 12

This fix applies, only on visionOS, a custom LabelStyle to list items that align the bullet to the center of the first line.

gonzalezreal commented 6 months ago

Awesome! Thanks ❤️