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!

I'm seeing the same issue. Even applying .tint(.accentColor) at the root level still pulls the system color instead of from the asset catalog.

What does work is setting .tint() at the root level to a programmatically created Color instance.

Xcode 27 How do we declare the accent color?
 
 
Q