From 88096effae4f48a4016f3280c3b318ea58a2b326 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Sun, 7 Dec 2025 00:00:34 +0100 Subject: [PATCH] Sendable --- Sources/Units/Units.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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