I am having string that i want to convert UUID
my string is - > "43pszizx-0000-0000-0000-000000000000"
i want to convert this into UUID
i have tried this code
let contactUUID = "43pszizx-0000-0000-0000-000000000000"
if let uuid = UUID(uuidString: contactUUID) {
moviesVC.conversationID = uuid
}
but it always returns nil
is there any solution to convert this string to UUID, this string coming from API as a contactId
thanks in advance