MDV

MDV is an open-source Markdown display library. It is used to display Markdown in SwiftUI.

View on GitHub

MDV

MDV 一个开源的 Markdown 展示库。在 SwiftUI 中展示 Markdown

功能特性

MDV 使用

1. 添加包

打开菜单 Xcode -> File -> Add Package Dependencies...

搜索 https://github.com/iChochy/MDV 找到 MDV

然后点击按钮 Add Package 添加 MDV

2. 使用示例

// 导入 MDV
import MDV
import SwiftUI

struct ContentView: View {
    @State private var markdownText = Constants.markdownText
    
    var body: some View {
        ScrollView {
            // 使用 MDView
            MDView(markdownText)
                .padding()
        }
    }
}

About

Blog: https://ichochy.com
GitHub: https://github.com/ichochy/mdv


图片

Mac

Mac.jpg

iPad

Mac.jpg

iPhone

Mac.jpg