diff --git a/Sources/Units/Units.swift b/Sources/Units/Units.swift index c0fd3fc..25a3eba 100644 --- a/Sources/Units/Units.swift +++ b/Sources/Units/Units.swift @@ -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: CustomStringConvertible, Equatable, - Comparable, Codable, Identifiable + Comparable, Codable, Identifiable, Sendable { // Store the value internally as a Double for consistent calculations public let value: Double