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

TOPIC:

Highlighted text is becoming black when highlightcolor set to white. 4 years 10 months ago #14380

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
I have set highlight color as white color below is the code in swift. But the hightlight text becomes black color text when highlighted rest other annotation underline and strikeout those colour are white and working properly.
let white:UInt32 = 0x22222222
//Highlight color setting
plugin.setColor(Int32(bitPattern:white), forFeature: 4)
//Underline color setting
plugin.setColor(Int32(bitPattern:white), forFeature: 2)

Underline is properly working while hightlight color is not working i have attached the document as well

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

Last edit: by apdeveloper.

Highlighted text is becoming black when highlightcolor set to white. 4 years 10 months ago #14382

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
0x22222222 is dark gray.
color blending of highlight, is not normal blending, it always make color darker.

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

Highlighted text is becoming black when highlightcolor set to white. 4 years 10 months ago #14384

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Dear Team,
Thank you for you reply.
Can you please share me white color code for hightlighting the text.

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

Highlighted text is becoming black when highlightcolor set to white. 4 years 10 months ago #14387

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

white color is 0xFFFFFFFF, it is ARGB format.

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

Highlighted text is becoming black when highlightcolor set to white. 4 years 10 months ago #14401

  • apdeveloper
  • apdeveloper's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 67
  • Thank you received: 0
Dear Team,
Thank you your reply problem was resolved.

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

  • Page:
  • 1
Powered by Kunena Forum