Skip to content

Commit

Permalink
Disallow color changes
Browse files Browse the repository at this point in the history
Fixes issue #12

We just override -changeColor: to do nothing.
Though this feels a little like a SwiftUI
issue.
  • Loading branch information
helje5 committed Apr 21, 2022
1 parent 39f457f commit 03ac744
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/CodeEditor/UXCodeTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ final class UXCodeTextView: UXTextView {
// MARK: - Actions

#if os(macOS)
override func changeColor(_ sender: Any?) {
// https://github.com/ZeeZide/CodeEditor/issues/12
// Reject user based color changes.
}

override func changeFont(_ sender: Any?) {
let coordinator = delegate as? UXCodeTextViewDelegate

Expand Down

0 comments on commit 03ac744

Please sign in to comment.