Xcode 27 How do we declare the accent color?

Hi guys

In Xcode 27, we have to create the Assets Catalog file ourselves. This file is empty. The icon now is generated by Icon Composer, but how do you specify the accent color?

I tried creating a Color set with the name AccentColor but didn't work. And look for options in the project settings but couldn't find any.

Here's what I've just tried:

  • Create a new project via File > New > Project and select App as the type.
  • Add a new asset catalog to the project using File > New > File From Template, and select Asset Catalog.
  • Add a new ColorSet and rename it to AccentColor
  • Reference Color.accentColor in a SwiftUI .foregroundStyle view modifier.

The color in the asset catalog appears correctly.

If you could provide a sample project in a feedback, that would help the investigation. Thanks!

Xcode 27 How do we declare the accent color?
 
 
Q