fix sendable (#2144)

This commit is contained in:
Keita Watanabe 2024-07-29 14:55:44 +09:00 committed by GitHub
parent 4c1ba2168d
commit 4f9cb2e86a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -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
}