Skip to content

Commit 03ac744

Browse files
committed
Disallow color changes
Fixes issue #12 We just override -changeColor: to do nothing. Though this feels a little like a SwiftUI issue.
1 parent 39f457f commit 03ac744

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/CodeEditor/UXCodeTextView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ final class UXCodeTextView: UXTextView {
9999
// MARK: - Actions
100100

101101
#if os(macOS)
102+
override func changeColor(_ sender: Any?) {
103+
// https://github.com/ZeeZide/CodeEditor/issues/12
104+
// Reject user based color changes.
105+
}
106+
102107
override func changeFont(_ sender: Any?) {
103108
let coordinator = delegate as? UXCodeTextViewDelegate
104109

0 commit comments

Comments
 (0)