How to change highlight color and underline color in swift. - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
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. 10 months 1 week ago #13575

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

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 527
  • Karma: 20
  • Thank you received: 60
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