Swiftpack.co - whitesmith/ulid as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by whitesmith.
whitesmith/ulid 1.2.1
Universally Unique Lexicographically Sortable Identifier (Objective-C wrapper of the C++ lib)
⭐️ 11
🕓 2 years ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/whitesmith/ulid.git", from: "1.2.1")

Universally Unique Lexicographically Sortable Identifier

Carthage Compatible CocoaPods Compatible SwiftPM Compatible License MIT

Objective-C wrapper of the C++ library

Usage

Objective-C

#import <ULID/ULID.h>

NSLog(@"%@", [[ULID new] ulidString]);

Swift:

import ULID

print(ULID().ulidString)

Requirements

  • iOS 9.0+
  • tvOS 9.0+
  • watchOS 2.0+
  • macOS 10.10+

Specification

Below is the current specification of ULID as implemented in this repository.

Note: the binary format has not been implemented.

 01AN4Z07BY      79KA1307SR9X4MV3

|----------|    |----------------|
 Timestamp          Randomness
   48bits             80bits

Installation

Carthage

To install it, simply add the following line to your Cartfile:

github "whitesmith/ulid"

Then run carthage update.

Follow the current instructions in Carthage's README for up to date installation instructions.

CocoaPods

To install it, simply add the following line to your Podfile:

pod 'ULID'

Then run pod install with CocoaPods 1.0 or newer.

Contributing

The best way to contribute is by submitting a pull request. We'll do our best to respond to your patch as soon as possible. You can also submit a new GitHub issue if you find bugs or have questions.

Whitesmith

GitHub

link
Stars: 11
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.2.1
2 years ago
  • Update Package.swift to correspond the CocoaPod specification (#8).

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics