Skip to content

Commit 6487a53

Browse files
committed
Use FoundationEssentials for UUID and Date conformances
1 parent 9a9e251 commit 6487a53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎Sources/TLVCoding/Foundation.swift‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
// Copyright © 2026 PureSwift. All rights reserved.
99
//
1010

11-
#if canImport(Foundation) && !hasFeature(Embedded)
11+
#if (canImport(FoundationEssentials) || canImport(Foundation)) && !hasFeature(Embedded)
12+
13+
#if canImport(FoundationEssentials)
14+
import FoundationEssentials
15+
#else
1216
import Foundation
17+
#endif
1318

1419
// MARK: - UUID
1520

0 commit comments

Comments
 (0)