Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

How to change highlight color and underline color in swift. 6 years 1 month ago #13575

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 24
  • Thank you received: 0
Hello team,

I am using swift 3 code in my project but it not changing highlight color and underline color..


Thank you

Please Log in or Create an account to join the conversation.

How to change highlight color and underline color in swift. 6 years 1 month ago #13580

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

you can use setColor method, like this:
plugin.setColor(self.colorBitPattern(color: UIColor.red), forFeature: 4)
You can use 4 to set the highlight color and 2 to set the underline color.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum