Skip to content

Commit 8f813af

Browse files
yusufozgullukepistrol
authored andcommitted
Update documentation
1 parent 2dfc69d commit 8f813af

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ struct ContentView: View {
4444
@State var font = NSFont.monospacedSystemFont(ofSize: 11, weight: .regular)
4545
@State var tabWidth = 4
4646
@State var lineHeight = 1.2
47+
@State var overScrollRatio = 0.3
4748

4849
var body: some View {
4950
CodeEditTextView(
@@ -52,7 +53,8 @@ struct ContentView: View {
5253
theme: $theme,
5354
font: $font,
5455
tabWidth: $tabWidth,
55-
lineHeight: $lineHeight
56+
lineHeight: $lineHeight,
57+
overScrollRatio: $overScrollRatio
5658
)
5759
}
5860
}

Sources/CodeEditTextView/Documentation.docc/CodeEditTextView.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ struct ContentView: View {
1212
@State var font = NSFont.monospacedSystemFont(ofSize: 11, weight: .regular)
1313
@State var tabWidth = 4
1414
@State var lineHeight = 1.2
15+
@State var overScrollRatio = 0.3
1516

1617
var body: some View {
1718
CodeEditTextView(
@@ -20,7 +21,8 @@ struct ContentView: View {
2021
theme: $theme,
2122
font: $font,
2223
tabWidth: $tabWidth,
23-
lineHeight: $lineHeight
24+
lineHeight: $lineHeight,
25+
overScrollRatio: $overScrollRatio
2426
)
2527
}
2628
}

Sources/CodeEditTextView/Documentation.docc/STTextViewController.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
- ``font``
1111
- ``tabWidth``
1212
- ``lineHeightMultiple``
13+
- ``overScrollRatio``

Sources/CodeEditTextView/STTextViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
4242
/// The font to use in the `textView`
4343
public var font: NSFont
4444

45-
/// The overScrollLineCount to use for the textView over scroll
45+
/// The overScrollRatio to use for the textView over scroll
4646
public var overScrollRatio: Double
4747

4848
// MARK: - Highlighting

0 commit comments

Comments
 (0)