How to get a UUID in objective c, like in Java UUID is used to generate unique random numbers which represents 128 bit value.
For Swift 5.0, Use this,
let uuidRef = CFUUIDCreate(nil) let uuidStringRef = CFUUIDCreateString(nil, uuidRef) let uuid = uuidStringRef as String? ?? ""