linkedin / Hakawai

A powerful, extensible UITextView.
Apache License 2.0
782 stars 104 forks source link

How to change textField mentioned color ? #235

Open ParagDevac opened 3 years ago

ParagDevac commented 3 years ago

Hello , Thanks for the library. i am using it in my app. Can you please tell me how to change the color of mentioned text. It is blue currently. Thank you.

dineshiOSDev commented 3 years ago

Configure it when you instantiate your plugin. HKWMentionsPluginV1.mentionsPlugin(withChooserMode: mode, controlCharacters: controlCharacters, searchLength: 0, unselectedColor: Theme.standard.primary, selectedColor: .red, selectedBackgroundColor: .black)

ParagDevac commented 3 years ago

I am using V2 . Is there any way to do it in HKWMentionsPluginV2 ? there is no method in v2 for unselectedColor: Theme.standard.primary, selectedColor: .red