Xcodeではできないが、
UITextfield
のplaceholderの色の変更は不可能と思われていたが
TextField
のattributedPlaceholder
のパラメーターで可能
self.myTextField.attributedPlaceholder = NSAttributedString( string: "文字", attributes: [NSAttributedString.Key.foregroundColor: UIColor.black] )
Xcodeではできないが、
UITextfield
のplaceholderの色の変更は不可能と思われていたが
TextField
のattributedPlaceholder
のパラメーターで可能
self.myTextField.attributedPlaceholder = NSAttributedString( string: "文字", attributes: [NSAttributedString.Key.foregroundColor: UIColor.black] )