Skip to content

MarkdownUI 2.5.1 — iOS List Link Fix, Swift 6 Sendable & OSS Polish

Choose a tag to compare

@peter-maude-new peter-maude-new released this 24 Nov 10:39
· 1 commit to ripul since this release

MarkdownUI 2.5.1 is a maintenance, Swift 6 concurrency, and open-source polish release on top of 2.5.0 (ripulio/swift-markdown-ui, maintained by Ripul).

1-Line Upgrade from Upstream 2.4.1

.package(url: "https://github.com/ripulio/swift-markdown-ui", from: "2.5.1")

What's New in 2.5.1

  • iOS list link hit-testing fix: On iOS, SwiftUI's .textSelection(.enabled) expands each selectable Text responder by ±16 pt, which caused a following list item to eclipse links on the item above it. Lists containing a link above another item or sibling block now automatically disable .textSelection on that list on iOS (hasOccludedListLink), leaving prose, link-free lists, and trailing-link lists unchanged.
  • Swift 6 Sendable support: MarkdownContent (and its underlying BlockNode AST types) now conform to Sendable for clean background-actor parsing, and Theme conforms to @unchecked Sendable (incorporating upstream #351).
  • Upgraded Examples/BenchmarkApp: Measures attached UIWindow / NSWindow hosts across settle ticks and compares .chat, .basic, and .gitHub directly against a closure-based Legacy 2.4.1 baseline and plain SwiftUI.Text.
  • Expanded documentation & community files: Added Light/Dark Theme.chat Retina visuals, a new DocC ChatAndStreaming guide, ARCHITECTURE.md, CHANGELOG.md, CONTRIBUTING.md, updated GitHub issue templates, and fixed DocC typos (upstream #354).