How would I change the color of an emoji?

后端 未结 2 1287
孤街浪徒
孤街浪徒 2021-01-14 07:02

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.textCo         


        
2条回答
  •  醉话见心
    2021-01-14 07:36

    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.

提交回复
热议问题