How to change highlight color and underline color in swift. - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
01 Jun 2018
During last few days we're experiencing some delay in website stmp provider channel.
Some notification email from the website might not reaching containers.
We're working on a definitive solution.
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: How to change highlight color and underline color in swift.

How to change highlight color and underline color in swift. 3 months 2 weeks ago #13575

  • rishikesh@appristine.in
  • rishikesh@appristine.in's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • 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. 3 months 1 week ago #13580

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 495
  • Karma: 15
  • Thank you received: 53
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