Hello people can anyone help us in how to change the cursor blink color of UITextView in Xcode using Swift language or from storyboard.
Swift 4, Xcode 9.1 Beta
I tried setting the tintColor of my UITextView in the interface builder but that didn't work for me. I don't know why, but setting the tintColor on my UITextView to one color, then resetting it to the color I really wanted worked for me...
myUITextView.tintColor = .anySystemColor
myUITextView.tintColor = .theColorYouReallyWant
For some reason that I don't know, I had to run a didChange
method because tintColor
on its own doesn't work.
BTW, I'm on Swift 5.
textView.tintColor = .white
textView.tintColorDidChange()
It works for me!
just change Tint Color
UITextView.appearance().tintColor = .black
Objective-C:
[[UITextView appearance] setTintColor:[UIColor blackColor]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With