CODEX-10 PLACEHOLDER TEXT COLOR AND STRING IN SWIFT

 PLACEHOLDER TEXT COLOR AND STRING IN SWIFT

  • Below is the code to set string and string color in placeholder
UITextField.attributedPlaceholder = NSAttributedString(string:

"ENTER MOBILE NUMBER", attributes:

[NSForegroundColorAttributeName:UIColor.whiteColor()])

Leave a Reply

Your email address will not be published. Required fields are marked *