Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Seeingu/MDEditor

Repository files navigation

MDEditor (In development)

Markdown editor and viewer in Swift, text rendering and processing by using Textkit2, and use swift-markdown as markdown-gfm parsing tool

Support platform:

Usage

import SwiftUI
import MDEditor

struct ContentView: View {
    @State private var text: String = """
    # Title

    paragraph
    """

    @State private var isEditable: Bool = true

    var body: some View {
        ZStack {
            MDEditor(text: $text, isEditable: $isEditable)
        }
    }
}

Inspiration

  • The Meet Textkit2 talk gives explanation of how text rendered and processed, and the details about how to use Textkit2

  • STTextView implemented the code editor view based on Textkit2

License

Apache v2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages