I am making a script to allow users to change element colors.
The script is designed to work on the text in buttons.
I have tried this:
func prettyText(_ button: RoundButton, colour: UIColor) {
button.textColor = colour
}
but it gives this error:
Value of type 'RoundButton' has no member 'textColor'; did you mean 'tintColor'?