mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 05:19:42 +01:00
fix sendable (#2144)
This commit is contained in:
parent
4c1ba2168d
commit
4f9cb2e86a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user