I tried changing the colors of the text for a button, but it\'s still staying white.
isbeauty = UIButton() isbeauty.setTitle(\"Buy\", forState: UIControlStat
Swift UI solution
Button(action: {}) { Text("Button") }.foregroundColor(Color(red: 1.0, green: 0.0, blue: 0.0))
Swift 3, Swift 4, Swift 5
to improve comments. This should work:
button.setTitleColor(.red, for: .normal)