Open arishanapalli opened 1 year ago
You can use this
let placeholderAttriburedString = NSMutableAttributedString(string: "Email")
if let isRequired = dataSource["required"] as? Bool, isRequired {
let asterix = NSAttributedString(string: " *", attributes: [.foregroundColor: UIColor.red])
placeholderAttriburedString.append(asterix)
}
self.textField.attributedPlaceholder = placeholderAttriburedString
How to have SkyFloatingLabelTextField with mandatory symbols with red colour. Placeholder text is "Enter your password ", The * should be in different colour?