{"id":13496803,"url":"https://github.com/qeude/SwiftDown","last_synced_at":"2025-03-28T19:31:07.245Z","repository":{"id":41809815,"uuid":"337207116","full_name":"qeude/SwiftDown","owner":"qeude","description":"📦 A themable markdown editor component for your SwiftUI apps.","archived":false,"fork":false,"pushed_at":"2024-02-19T08:40:44.000Z","size":1574,"stargazers_count":470,"open_issues_count":7,"forks_count":50,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-10-31T12:41:24.751Z","etag":null,"topics":["markdown","spm","swift","swift-package-manager","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qeude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-08T20:55:33.000Z","updated_at":"2024-10-31T06:28:56.000Z","dependencies_parsed_at":"2024-01-17T00:55:09.187Z","dependency_job_id":"5efa0f5d-c109-4bc2-8aad-b71b9ca6d96d","html_url":"https://github.com/qeude/SwiftDown","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeude%2FSwiftDown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeude%2FSwiftDown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeude%2FSwiftDown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeude%2FSwiftDown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qeude","download_url":"https://codeload.github.com/qeude/SwiftDown/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246088431,"owners_count":20721684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["markdown","spm","swift","swift-package-manager","swiftui"],"created_at":"2024-07-31T19:02:00.249Z","updated_at":"2025-03-28T19:31:06.884Z","avatar_url":"https://github.com/qeude.png","language":"Swift","funding_links":[],"categories":["Swift","Markdown"],"sub_categories":["Content"],"readme":"# SwiftDown\n\n[![codecov](https://codecov.io/gh/qeude/SwiftDown/branch/main/graph/badge.svg?token=RB6K3Q5QIO)](https://codecov.io/gh/qeude/SwiftDown)\n\n## 📖 Description\n\nA markdown editor component for your SwiftUI apps.\n\n- 🎉 Live preview directly in editor for most of Markdown elements, without web based preview.\n- ⚡️ Fast, built on top of [cmark](https://github.com/commonmark/cmark).\n- 🗒 Pure markdown, no proprietary format.\n- 💻:📱 macOS and iOS support.\n\n\u003cdiv align=center\u003e\u003cimg src=\"resources/demo.gif\" align=center height=\"500\"\u003e\u003c/div\u003e\n\n## 🛠️ Install\n\n### 📦 Swift Package Manager\n\nEither use Xcode to add the package dependency or add the following dependency to your Package.swift:\n\n```\n.package(url: \"https://github.com/qeude/SwiftDown.git\", from: \"0.4.1),\n```\n\n## 🔧 Usage\n\n```swift\nimport SwiftDown\nimport SwiftUI\n\nstruct ContentView: View {\n    @State private var text: String = \"\"\n\n    var body: some View {\n        SwiftDownEditor(text: $text)\n            .insetsSize(40)\n            .theme(Theme.BuiltIn.defaultDark.theme())\n    }\n}\n```\n\n## 🖌️ Themes\n\n### 🖼 BuildIn themes\n\n#### Default Dark\n\n\u003cimg src=\"resources/default-dark-theme.png\" height=\"400\"\u003e\n\n#### Default Light\n\n\u003cimg src=\"resources/default-light-theme.png\" height=\"400\"\u003e\n\n### 🧑‍🎨 Custom themes\n\nSwiftDown supports theming by using config `.json` files as [this one](./Sources/SwiftDown/Resources/Themes/default-dark.json)\nThen init your custom theme as below.\n\n```swift\nTheme(themePath: Bundle.main.path(forResource: \"my-custom-theme\", ofType: \"json\"))\n```\n\n## 👨🏻‍💻 Author\n\n- Quentin Eude\n  - [Github](https://github.com/qeude)\n  - [LinkedIn](https://www.linkedin.com/in/quentineude/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeude%2FSwiftDown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeude%2FSwiftDown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeude%2FSwiftDown/lists"}