How to change text field placeholder color from storyboard .
- select the UITextfiled of which you want to change the color. if there are several text fields, you have to do the same procedure for each.
- open the identity inspector. see the pic.
- Find the User Defined Runtime Attributes and click + button.
- Type a new row with Key Path placeholderLabel.textColor. be reminded that this is for iOS13, Swift 5.0. if it is for lower version, type _placeholderLabel.textColor instead.
- choose Type color and select the color as your choice.
0 件のコメント:
コメントを投稿