Parcker
Parcker

Reputation: 219

Catalyst textview caret color

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

Upvotes: 1

Views: 262

Answers (1)

K1w1Geek
K1w1Geek

Reputation: 615

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.

Upvotes: 0

Related Questions