This commit is contained in:
cdricms
2025-12-07 00:00:34 +01:00
parent edb2bdd022
commit 88096effae

View File

@@ -76,7 +76,7 @@ public enum UnitCategory: String, CaseIterable, CustomStringConvertible,
// MARK: - 2. Unit Enum
public enum Unit: String, CaseIterable, CustomStringConvertible, Codable,
Equatable, Identifiable
Equatable, Identifiable, Sendable
{
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`.
public struct UnitValue<ValueType: ConvertibleToDouble>:
CustomStringConvertible, Equatable,
Comparable, Codable, Identifiable
Comparable, Codable, Identifiable, Sendable
{
// Store the value internally as a Double for consistent calculations
public let value: Double