Skip to content

Commit 58030bb

Browse files
committed
Docs, Tests
1 parent 4f4de36 commit 58030bb

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

Package.resolved

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/CodeEditSourceEditor/Controller/TextViewController+StyleViews.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ extension TextViewController {
6767
scrollView.scrollerStyle = .overlay
6868
}
6969

70+
/// Updates all relevant content insets including the find panel, scroll view, minimap and gutter position.
7071
package func updateContentInsets() {
7172
updateTextInsets()
7273

@@ -103,6 +104,7 @@ extension TextViewController {
103104
minimapView.scrollView.reflectScrolledClipView(minimapView.scrollView.contentView)
104105
}
105106

107+
/// Updates the text view's text insets. See ``textViewInsets`` for calculation.
106108
func updateTextInsets() {
107109
// Allow this method to be called before ``loadView()``
108110
guard textView != nil, minimapView != nil else { return }

Tests/CodeEditSourceEditorTests/Mock.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ enum Mock {
6363
isSelectable: true,
6464
letterSpacing: 1.0,
6565
useSystemCursor: false,
66-
bracketPairEmphasis: .flash
66+
bracketPairEmphasis: .flash,
67+
showMinimap: true
6768
)
6869
}
6970

Tests/CodeEditSourceEditorTests/TextViewControllerTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ final class TextViewControllerTests: XCTestCase {
3131
isSelectable: true,
3232
letterSpacing: 1.0,
3333
useSystemCursor: false,
34-
bracketPairEmphasis: .flash
34+
bracketPairEmphasis: .flash,
35+
showMinimap: true
3536
)
3637

3738
controller.loadView()

0 commit comments

Comments
 (0)