Skip to content

Commit a4aa1d1

Browse files
committed
Resolved PR issues
1 parent 4a88f7b commit a4aa1d1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Sources/CodeEditSourceEditor/Controller/TextViewController+LoadView.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ extension TextViewController {
1212
override public func loadView() {
1313
super.loadView()
1414

15-
// Create scroll view
1615
scrollView = NSScrollView()
1716
scrollView.documentView = textView
1817

19-
// Create gutter view
2018
gutterView = GutterView(
2119
font: font.rulerFont,
2220
textColor: theme.text.color.withAlphaComponent(0.35),
@@ -27,7 +25,6 @@ extension TextViewController {
2725
gutterView.updateWidthIfNeeded()
2826
scrollView.addFloatingSubview(gutterView, for: .horizontal)
2927

30-
// Create reformatting guide view
3128
guideView = ReformattingGuideView(
3229
column: self.reformatAtColumn,
3330
isVisible: self.showReformattingGuide,
@@ -37,11 +34,9 @@ extension TextViewController {
3734
scrollView.addFloatingSubview(guideView, for: .vertical)
3835
guideView.updatePosition(in: textView)
3936

40-
// Create minimap view
4137
minimapView = MinimapView(textView: textView, theme: theme)
4238
scrollView.addFloatingSubview(minimapView, for: .vertical)
4339

44-
// Create find view
4540
let findViewController = FindViewController(target: self, childView: scrollView)
4641
addChild(findViewController)
4742
self.findViewController = findViewController
@@ -53,13 +48,11 @@ extension TextViewController {
5348
textView.setUndoManager(_undoManager)
5449
}
5550

56-
// Style views
5751
styleTextView()
5852
styleScrollView()
5953
styleGutterView()
6054
styleMinimapView()
6155

62-
// Set up
6356
setUpHighlighter()
6457
setUpTextFormation()
6558

@@ -108,7 +101,6 @@ extension TextViewController {
108101
}
109102

110103
func setUpOnScrollChangeObserver() {
111-
// Layout on scroll change
112104
NotificationCenter.default.addObserver(
113105
forName: NSView.boundsDidChangeNotification,
114106
object: scrollView.contentView,
@@ -123,7 +115,6 @@ extension TextViewController {
123115
}
124116

125117
func setUpOnScrollViewFrameChangeObserver() {
126-
// Layout on frame change
127118
NotificationCenter.default.addObserver(
128119
forName: NSView.frameDidChangeNotification,
129120
object: scrollView.contentView,

0 commit comments

Comments
 (0)