Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift uitextfield placeholder color

myTextField.attributedPlaceholder = NSAttributedString(string: "placeholder text",
                             attributes: [NSAttributedString.Key.foregroundColor: UIColor.white])
 
PREVIOUS NEXT
Tagged: #swift #uitextfield #placeholder #color
ADD COMMENT
Topic
Name
7+9 =