Generate a Unique Identifier

 Problem

I want to create a random UUID (unique identifier string).



 Recipe


// Create the Unique Identifier

let uuid = NSUUID().UUIDString
print(s)

				

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)

 

 Playground