Skip to content

Commit

Permalink
fix sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
kitwtnb committed Jul 25, 2024
1 parent 4c1ba21 commit d3c7eaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Packages/DesignSystem/Sources/DesignSystem/ColorSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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"
Expand All @@ -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
}
Expand Down

0 comments on commit d3c7eaf

Please sign in to comment.