const styles = {
'input-label': {
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
overflow: 'hidden',
width: '100%',
color: 'red'
},
'input': {
'&::placeholder': {
textOverflow: 'ellipsis !important',
color: 'blue'
}
}
};
swift 5
myTextfield.attributedPlaceholder =
NSAttributedString(
string: "placeholder text",
attributes: [
NSAttributedString.Key.foregroundColor: UIColor.red
]
)