Catalyst textview caret color

252 Views Asked by At

How I can change caret color in textView for Catalyst version of my app? I tried to use

textView.tintColor

but it doesn't works on Catalyst.

I mean

enter image description here

1

There are 1 best solutions below

0
K1w1Geek On

Try this: [[textView textInputTraits] setValue:[UIColor redColor] forKey:@"insertionPointColor"];

Sourced from here, but it may be private: https://stackoverflow.com/a/4273440/1043615

One comment says it no longer works from iOS 10 but it works OK for Catalyst.