Hi there, I'm Marcos!

Back

UUID from string

If you have a UUID in a string format and you need to have a UUID object you can create one as follows:

let uuid = UUID(uuidString: "...")

Note that this method can return nil if the string is not a valid UUID representation.