1

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

slideshowp2
  • 38,463
  • 29
  • 127
  • 255
Parcker
  • 169
  • 6

1 Answers1

0

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.

K1w1Geek
  • 555
  • 4
  • 5