How would I change the color of an emoji?
问题 I have an emoji, and I want it to be white, but when I run the program it appears red. How do I change it to white? rating.text = "\(♥♥♥♥♥)" rating.textColor = UIColorRGB("ffffff") 回答1: The following answer explains why you can't change the color of Emoji characters. The glyphs are essentially images. If you want to be able to use a heart symbol that you can color, try using one of the non-Emoji heart characters like ♥︎ . Or ensure the label's font isn't using the Apple Color Emoji font. 回答2: