Skip to content

Commit 488ff1a

Browse files
committed
doc: update document.
1 parent ff7f547 commit 488ff1a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Set editor placeholder string:
6565

6666
```swift
6767
TextEditorPlus(text: $text)
68+
//.font(NSFont(name: "pencontrol", size: 12)!)
6869
.font(.systemFont(ofSize: CGFloat(Float(fontSize)!), weight: .regular))
6970
.textSetting("Test placeholder string", for: .placeholderString)
7071
```

Sources/TextEditorPlus/Settings/Font.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extension TextEditorPlus {
3535
///
3636
/// ```swift
3737
/// TextEditorPlus(text: $text)
38+
/// .font(NSFont(name: "pencontrol", size: 12)!)
3839
/// .font(.systemFont(ofSize: 24, weight: .regular))
3940
/// ```
4041
public func font(_ value: FontHelper) -> Self {

0 commit comments

Comments
 (0)