Latest 1.1.0
Homepage https://github.com/whitesmith/ulid
License MIT
Platforms ios 8.0, tvos 9.0, watchos 2.0, osx 10.10, requires ARC
Authors

Universally Unique Lexicographically Sortable Identifier

Carthage Compatible
CocoaPods Compatible
Build Status
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 8.0+
  • watchOS 2.0+
  • tvOS 9.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

ULID 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.

ULID 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

Latest podspec

{
    "name": "ULID",
    "version": "1.1.0",
    "summary": "Universally Unique Lexicographically Sortable Identifier",
    "homepage": "https://github.com/whitesmith/ulid",
    "authors": {
        "Ricardo Pereira": "[email protected]"
    },
    "license": "MIT",
    "social_media_url": "https://twitter.com/whitesmithco",
    "description": "Universally Unique Lexicographically Sortable Identifier (Objective-C wrapper of the C++ lib).",
    "source": {
        "git": "https://github.com/whitesmith/ulid.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0",
        "watchos": "2.0",
        "osx": "10.10"
    },
    "requires_arc": true,
    "source_files": [
        "ULID/*.{h}",
        "Source/*.{h,hh,hpp,cpp,m,mm}"
    ],
    "public_header_files": [
        "ULID/*.{h}",
        "Source/*.{h}"
    ],
    "private_header_files": "Source/*.{hh,hpp}"
}

Pin It on Pinterest

Share This