MarkdownUI is a SwiftUI library for displaying and customizing Markdown text in iOS, macOS, tvOS, and watchOS applications.
The library solves the problem of rendering rich Markdown content within SwiftUI interfaces. It parses Markdown according to the GitHub Flavored Markdown specification and converts it into native SwiftUI views. The tool supports a comprehensive set of Markdown elements including images, headings, lists with task list support, blockquotes, code blocks, tables, and thematic breaks. It provides theming capabilities that allow developers to customize how Markdown renders through built-in themes, custom themes, or targeted overrides of specific text and block styles.
Developers building SwiftUI applications that need to display user-generated or remote Markdown content should consider this library. It works across Apple platforms with minimum requirements of macOS 12.0, iOS 15.0, tvOS 15.0, and watchOS 8.0, though some advanced features like tables require newer platform versions. The library offers two approaches to creating Markdown views: passing a Markdown string directly to an initializer, or using a content builder with a domain-specific language for composing Markdown content programmatically.
The project is in maintenance mode with new development focused on a successor project. The repository maintains active continuous integration workflows. Documentation is provided through DocC, Apple's native documentation system. The codebase is written in Swift and targets the SwiftUI framework exclusively.