https://github.com/bsorrentino/swiftyace
SwiftUI code editor SwiftUI which is based on Ace editor.
https://github.com/bsorrentino/swiftyace
Last synced: 7 months ago
JSON representation
SwiftUI code editor SwiftUI which is based on Ace editor.
- Host: GitHub
- URL: https://github.com/bsorrentino/swiftyace
- Owner: bsorrentino
- License: mit
- Created: 2024-08-12T14:49:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T22:42:56.000Z (about 1 year ago)
- Last Synced: 2024-10-19T14:32:48.171Z (12 months ago)
- Language: JavaScript
- Size: 467 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftyACE
This is `SwiftUI` code editor based on [Ace editor] inspired by [CodeViewer]. `SwiftyACE` is currently used by [PlantUML4iPad] and its main goal is to **select a language to provides a tailored editor experience**.
## Features
- [x] Darkmode, lightmode adopt automatically
- [x] Select the Syntax highlighting by over 110 languages (TextMate/Sublime Text.tmlanguage files can be imported)
- [x] Over 20 themes (TextMate/Sublime Text .tmtheme files can be imported)
- [x] Support SwiftUI## Usage
```Swift
import SwiftUI
import AceEditorstruct ContentView: View {
@State private var text = "HELLO ACE!"
var body: some View {AceEditorView(
content: $text,
mode: .plain_text,
darkTheme: .monokai,
lightTheme: .chrome,
isReadOnly: false,
fontSize: 12
)
}
}```
## Requirements
- iOS >= v16
- macOS >= v13[Ace Editor]: https://ace.c9.io
[PlantUML4iPad]: https://github.com/bsorrentino/PlantUML4iPad
[CodeViewer]: https://github.com/dwarvesf/CodeViewer