How can I change the color of the cursor in my UITextField?
How can I change the color of the cursor in my UITextField?
If you are developing on Mac OS X, then you can try the setInsertionPointColor: method. See NSTextView reference for more details.
To change the cursor color throughout the app for UITextField/UITextView, appearance proxy can also be used as below,
UITextField.appearance().tintColor = .green
UITextView.appearance().tintColor = .green