In my iOS Swift app I want to generate random UUID (GUID) strings for use as a table key, and this snippet appears to work:
let uuid = CFUU
Also you can use it lowercase under below
can
lowercase
let uuid = NSUUID().UUIDString.lowercaseString print(uuid)
Output
68b696d7-320b-4402-a412-d9cee10fc6a3
Thank you !