Hi there, I'm Marcos!

Back

Getting the string representation of a UUID

If you want to get the string representation of a UUID in Swift you can call the uuidString property from the struct:

let uuid = UUID()

print("Your UUID is \(uuid.uuidString)")