CodeEditTextView
https://github.com/CodeEditApp/CodeEditTextView
来自 CodeEdit.app 项目的一个 SwiftUI 文本编辑框组件。

```swift
import CodeEditTextView
struct ContentView: View {
@State var text = "let x = 1.0"
@State var theme = EditorTheme(...)
@State var font = NSFont.monospacedSystemFont(ofSize: 11, weight: .regular)
@State var tabWidth = 4
@State var lineHeight = 1.2
var body: some View {
CodeEditTextView(
$text,
language: .swift,
theme: $theme,
font: $font,
tabWidth: $tabWidth,
lineHeight: $lineHeight
)
}
}
```
#var #State #CodeEditTextView #theme #font #tabWidth #lineHeight #https #swift #View
https://github.com/CodeEditApp/CodeEditTextView
来自 CodeEdit.app 项目的一个 SwiftUI 文本编辑框组件。

```swift
import CodeEditTextView
struct ContentView: View {
@State var text = "let x = 1.0"
@State var theme = EditorTheme(...)
@State var font = NSFont.monospacedSystemFont(ofSize: 11, weight: .regular)
@State var tabWidth = 4
@State var lineHeight = 1.2
var body: some View {
CodeEditTextView(
$text,
language: .swift,
theme: $theme,
font: $font,
tabWidth: $tabWidth,
lineHeight: $lineHeight
)
}
}
```
#var #State #CodeEditTextView #theme #font #tabWidth #lineHeight #https #swift #View