• Stars
    star
    320
  • Rank 131,126 (Top 3 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“¦ A themable markdown editor component for your SwiftUI apps.

SwiftDown

codecov

πŸ“– Description

A markdown editor component for your SwiftUI apps.

  • πŸŽ‰ Live preview directly in editor for most of Markdown elements, without web based preview.
  • ⚑️ Fast, built on top of cmark.
  • πŸ—’ Pure markdown, no proprietary format.
  • πŸ’»:πŸ“± macOS and iOS support.

πŸ› οΈ Install

πŸ“¦ Swift Package Manager

Either use Xcode to add the package dependency or add the following dependency to your Package.swift:

.package(url: "https://github.com/qeude/SwiftDown.git", from: "0.3.1"),

πŸ”§ Usage

import SwiftDown
import SwiftUI

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

    var body: some View {
        SwiftDownEditor(text: $text)
            .insetsSize(40)
            .theme(Theme.BuiltIn.defaultDark.theme())
    }
}

πŸ–ŒοΈ Themes

πŸ–Ό BuildIn themes

Default Dark

Default Light

πŸ§‘β€πŸŽ¨ Custom themes

SwiftDown supports theming by using config .json files as this one Then init your custom theme as below.

Theme(themePath: Bundle.main.path(forResource: "my-custom-theme", ofType: "json"))

πŸ‘¨πŸ»β€πŸ’» Author

More Repositories

1

Swush

πŸ”” macOS Application to play with the Apple Push Notification service (APNs).
Swift
90
star
2

Notflix

πŸ“±Netflix like application using SwiftUI and Combine
Swift
89
star
3

nowplayify

πŸ’» Web app that display the currently playing track on your Spotify account. Mainly made to use on a raspberry-pi.
JavaScript
16
star
4

Notesi

(WiP) πŸ—’οΈ Minimalist markdown note taking app.
Swift
8
star
5

events-app

πŸ“±Flutter App to manage life events
Dart
6
star
6

Hydrate

πŸ“±(WiP) iOS & macOS health app to drink more water made using SwiftUI.
Swift
5
star
7

vscode-django-test-path

πŸ’» VSCode extension to easily copy test path of a selected method, class or file.
JavaScript
3
star
8

PocketcastUI

πŸ’» Pocketcast client using SwiftUI.
Swift
2
star
9

csvtotrello

πŸ’» Basic Python script to bulk import CSV backlog into Trello
Python
1
star
10

MarvelousSquad

πŸ“± iOS app to create your superheroes squad using Swift.
Swift
1
star
11

nowplayify-api

JavaScript
1
star
12

mobiapps-exercice

πŸ“± iOS App made for an exercise using Swift and the Guild Wars 2 API
Swift
1
star
13

AdventOfCode

Swift
1
star
14

100DaysOfSwiftUI

πŸ‘¨πŸ»β€πŸ’»100 Days Of SwiftUI Challenge by Paul Hudson - https://www.hackingwithswift.com/100/swiftui
Swift
1
star
15

macOS-setup

πŸ’» Repo that contains my basic macOS dev setup
Shell
1
star
16

combine-asynchronous-programming-with-swift

πŸ“– Projects, playgrounds, and other materials made while following along with the Ray Wenderlich book "Combine: Asynchronous Programming with Swift"
Swift
1
star