diff --git a/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift b/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift index 1b6d8efac..37b34f963 100644 --- a/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift +++ b/Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift @@ -9,7 +9,7 @@ public let availableColorsSets: [ColorSetCouple] = .init(light: ConstellationLight(), dark: ConstellationDark()), .init(light: ThreadsLight(), dark: ThreadsDark())] -public protocol ColorSet { +public protocol ColorSet: Sendable { var name: ColorSetName { get } var scheme: ColorScheme { get } var tintColor: Color { get set } @@ -18,11 +18,11 @@ public protocol ColorSet { var labelColor: Color { get set } } -public enum ColorScheme: String { +public enum ColorScheme: String, Sendable { case dark, light } -public enum ColorSetName: String { +public enum ColorSetName: String, Sendable { case iceCubeDark = "Ice Cube - Dark" case iceCubeLight = "Ice Cube - Light" case iceCubeNeonDark = "Ice Cube Neon - Dark" @@ -39,7 +39,7 @@ public enum ColorSetName: String { case threadsDark = "Threads - Dark" } -public struct ColorSetCouple: Identifiable { +public struct ColorSetCouple: Identifiable, Sendable { public var id: String { dark.name.rawValue + light.name.rawValue }