0

I'm trying to set the color of the placeholder within a UITextField, however it causes either the placeholder to disappear, or turn the same color as the UITextField so that it can't be seen (I'm not sure which).

Within ViewWillAppear..

// Set placeholder color of password field
textfieldEmployeesClockedInSearchFilter1.AttributedPlaceholder 
   = new NSAttributedString(
      "Find...",
      font: Fonts.Paragraph(Fonts.FontWeightFlags.Regular),
      foregroundColor: UIColor.FromRGBA(117 / 255, 117 / 255, 117 / 255, 255 / 255),
      strokeColor: UIColor.FromRGBA(117 / 255, 117 / 255, 117 / 255, 255 / 255),
      strokeWidth: 4
   );

Am I misconfiguring something?

Le-roy Staines
  • 1,977
  • 1
  • 20
  • 39
  • I hope this link(https://stackoverflow.com/questions/34647627/why-does-my-uitextfield-placeholder-disappear-when-setting-uitextfield-backgroun) can help you. – Wen xu Li - MSFT Dec 13 '21 at 09:41

0 Answers0