diff --git a/Sources/Sourceful/View/SyntaxTextView.swift b/Sources/Sourceful/View/SyntaxTextView.swift index 6c7605f..6f6cc27 100644 --- a/Sources/Sourceful/View/SyntaxTextView.swift +++ b/Sources/Sourceful/View/SyntaxTextView.swift @@ -84,7 +84,10 @@ open class SyntaxTextView: _View { open override var tintColor: UIColor! { didSet { - + #if targetEnvironment(macCatalyst) + let textInputTraits = textView.value(forKey: "textInputTraits") as? NSObject + textInputTraits?.setValue(tintColor, forKey: "insertionPointColor") + #endif } }