An open API service indexing awesome lists of open source software.

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.

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 AceEditor

struct 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