Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sendable for ColorSet #2144

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading