Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoolwinter committed Jan 16, 2024
1 parent ba63c78 commit d79b88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Sources/CodeEditTextView/Cursors/CursorTimer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CursorTimer {
var shouldHide: Bool = false

// MARK: - Methods

/// Resets the cursor blink timer.
/// - Parameter newBlinkDuration: The duration to blink, leave as nil to never blink.
func resetTimer(newBlinkDuration: TimeInterval? = 0.5) {
Expand Down Expand Up @@ -56,13 +56,12 @@ class CursorTimer {
cursor.blinkTimer(shouldHide)
}
}

/// Register a new cursor view with the timer.
/// - Parameter newCursor: The cursor to blink.
func register(_ newCursor: CursorView) {
cursors.add(newCursor)
}


deinit {
timer?.invalidate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class TextSelectionManager: NSObject {
}

// MARK: - Selection Views

/// Update all selection cursors. Placing them in the correct position for each text selection and reseting the
/// blink timer.
func updateSelectionViews() {
Expand Down Expand Up @@ -197,7 +197,7 @@ public class TextSelectionManager: NSObject {
cursorTimer.resetTimer()
}
}

/// Removes all cursor views and stops the cursor blink timer.
func removeCursors() {
cursorTimer.stopTimer()
Expand Down

0 comments on commit d79b88e

Please sign in to comment.