Native Swift UUIDs. Generates RFC 4122 version 4, randomly generated UUIDs.
import SwiftyUUID
...
let uuid = SwiftyUUID.UUID()
let uuidString = uuid.CanonicalString()
let uuidBytes = uuid.bytes
CocoaPods is a dependency manager for Cocoa projects.
CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:
$ gem install cocoapods
To integrate SwiftyUUID into your Xcode project using CocoaPods, specify it in your Podfile
:
use_frameworks!
pod 'SwiftyUUID', '~> 1.0'
Then, run the following command:
$ pod install