UUIDGenerator
A dependency that generates a UUID.
struct UUIDGenerator
See uuid
for more information.
A dependency that generates a UUID.
struct UUIDGenerator
See uuid
for more information.
import Dependencies
A dependency management library inspired by SwiftUI’s “environment.”
var uuid: UUIDGenerator { get set }
A dependency that generates UUIDs.
protocol Sendable
init(_ generate: @escaping () -> UUID)
Initializes a UUID generator that generates a UUID from a closure.
static var incrementing: `Self` { get }
A generator that generates UUIDs in incrementing order.
static func constant(_ uuid: UUID) -> UUIDGenerator
A generator that returns a constant UUID.
func callAsFunction() -> UUID