bobby123uk
bobby123uk

Reputation: 1140

SwiftUI AccentColor Between Targets

Is it possible to share the accent color between targets?

Color.accentColor

Upvotes: 1

Views: 402

Answers (1)

Ekrem Duvarbasi
Ekrem Duvarbasi

Reputation: 187

AccentColor is kept in Assets.xcassets file by default. And you can decide its source name in Project>Buid Settings>Global Accent Color Name. So, you can create an .xcassets file, share between your targets and set your AccentColor in this file.

Upvotes: 1

Related Questions