Sendable
This commit is contained in:
@@ -76,7 +76,7 @@ public enum UnitCategory: String, CaseIterable, CustomStringConvertible,
|
|||||||
|
|
||||||
// MARK: - 2. Unit Enum
|
// MARK: - 2. Unit Enum
|
||||||
public enum Unit: String, CaseIterable, CustomStringConvertible, Codable,
|
public enum Unit: String, CaseIterable, CustomStringConvertible, Codable,
|
||||||
Equatable, Identifiable
|
Equatable, Identifiable, Sendable
|
||||||
{
|
{
|
||||||
public var id: String { rawValue } // Conformance for SwiftUI's ForEach
|
public var id: String { rawValue } // Conformance for SwiftUI's ForEach
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ public enum Unit: String, CaseIterable, CustomStringConvertible, Codable,
|
|||||||
// but the internal `value` will be stored as a `Double`.
|
// but the internal `value` will be stored as a `Double`.
|
||||||
public struct UnitValue<ValueType: ConvertibleToDouble>:
|
public struct UnitValue<ValueType: ConvertibleToDouble>:
|
||||||
CustomStringConvertible, Equatable,
|
CustomStringConvertible, Equatable,
|
||||||
Comparable, Codable, Identifiable
|
Comparable, Codable, Identifiable, Sendable
|
||||||
{
|
{
|
||||||
// Store the value internally as a Double for consistent calculations
|
// Store the value internally as a Double for consistent calculations
|
||||||
public let value: Double
|
public let value: Double
|
||||||
|
|||||||
Reference in New Issue
Block a user