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.
💻Software engineer
🇪🇸From Madrid, Spain
💼Building a one-person business
🧱LEGO collector
Back
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.