Skip to content

Commit

Permalink
doc: update document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 4, 2024
1 parent 5c5f1ab commit ed337ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Example/Example/Examples/TextColorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct TextColorView: View {
})
.controlSize(.small)
.labelsHidden()
.padding()

TextEditorPlus(text: $text)
.textSetting(NSColor(color), for: .textColor)
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ TextEditorPlus(text: $text)
.textSetting(NSColor.red, for: .backgroundColor)
```

Set editor text color:

```swift
TextEditorPlus(text: $text)
.textSetting(NSColor.red, for: .textColor)
```

Set editor placeholder string:

```swift
Expand Down

0 comments on commit ed337ec

Please sign in to comment.