How do you set the placeholder color of iOS 13's UISearchTextField
?
I tried the following with no success:
searchField.attributedPlaceholder = NSAttributedString(string: "Some placeholder", attributes: [NSAttributedString.Key.foregroundColor: UIColor.red])
Is this a bug in the current beta or do I miss something? I am using Xcode 11, beta 7.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…