Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 568 Bytes

File metadata and controls

29 lines (18 loc) · 568 Bytes

UUIDNamespaces

Namespace extensions for the built-in UUID class.

Installation

Install using Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/doneservices/UUIDNamespaces", from: "1.0.0"),
]

or using Cocoapods:

pod 'UUIDNamespaces', '~> 1.0'

API

UUID(name: String, namespace: UUID) -> UUID

Generate a new UUID version 5 with the specified name and namespace.

UUID(name: String, namespace: UUID, version: .v3) -> UUID

Generate a new UUID version 3 with the specified name and namespace.