Skip to content

doneservices/UUIDNamespaces

Repository files navigation

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.

About

Namespace extensions for the built-in UUID class

Resources

Stars

Watchers

Forks

Packages

No packages published