vyo / uuid

A dependency free, lightweight, fast and easy to use Universally Unique Identifier (UUID) implementation in pure Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fireblade UUID

Build Status license swift version platforms

This is a dependency free, lightweight, fast and easy to use RFC4122 compliant Universally Unique Identifier (UUID) implementation.
It is developed and maintained as part of the Fireblade Game Engine project.

πŸš€ Getting Started

These instructions will get you a copy of the project up and running on your local machine and provide a code example.

πŸ“‹ Prerequisites

πŸ’» Installing

Fireblade UUID is available for all platforms that support Swift 5.0 and higher and the Swift Package Manager (SPM).

Extend the following lines in your Package.swift file or use it to create a new project.

// swift-tools-version:5.0

import PackageDescription

let package = Package(
    name: "YourPackageName",
    dependencies: [
    .package(url: "https://github.com/fireblade-engine/uuid.git", from: "1.0.0")
    ],
    targets: [
        .target(
            name: "YourTargetName",
            dependencies: ["FirebladeUUID"])
    ]
)

πŸ“ Code Example

// create a UUID
let uuid = UUID()

// print a string representation
print(uuid.uuidString)

🏷️ Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

✍️ Authors

πŸ” License

This project is licensed under the MIT License - see the LICENSE file for details

About

A dependency free, lightweight, fast and easy to use Universally Unique Identifier (UUID) implementation in pure Swift

License:MIT License


Languages

Language:Swift 92.2%Language:Makefile 7.8%