gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.24k stars 266 forks source link

Fix bullets in visionOS #308

Closed tapsandswipes closed 2 months ago

tapsandswipes commented 2 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 2 months ago

Awesome! Thanks ❤️