Why are three properties that I expect to be the same color all have different colors, please?

Why are three properties that I expect to be the same color all have different colors, please?

Apologies for the newbie question.

I set all the colors of different types of text to be different colors under Xcode>Settings>Themes

As seen on the right.

So, I would expect a "property" to be the same type of code with the same type of color, right?

Why are "title", "artist" and "duration" property of "song" all different colors?

Please see the two screen shots here :

...

Thank you for your time.

:rainbow::pray::rainbow:

Xcode's syntax highlighting is pretty buggy sometimes.

1 Like

I think it's just a quirk of playgrounds. The colors seem correct in a regular Xcode project.

Playgrounds have various small deficiencies and bugs these days. I've pretty much given up using them for anything, since it's almost as quick to create a real project. :slightly_smiling_face:

2 Likes