Skip to content

Commit fef8d59

Browse files
committed
Add availability annotation
1 parent 061512b commit fef8d59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/FoundationEssentials/UUID.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public struct UUID : Hashable, Equatable, CustomStringConvertible, Sendable, Los
5858
self.uuid = uuid
5959
}
6060

61-
/// LosslessStringConvertible initializer
61+
/// Create a UUID from a string representation conforming to `LosslessStringConvertible`.
62+
@available(macOS 10.8, iOS 6.0, tvOS 9.0, watchOS 2.0, *)
6263
public init?(_ description: String) {
6364
self.init(uuidString: description)
6465
}

0 commit comments

Comments
 (0)