I have a session variable saved in a Core Data table as a UUID field. I'm happy with that and it saves correct as I can print it as shown below. My problem is that I'm unable to set my UUID variable, it somehow return blank in my debug window and not sure what I'm doing wrong.
From my table view I select a row and retrieve the Core Data variables successfully which are all var = String():
PassNameSurname = userAccountArray[indexPath.row].nameSurname!
PassCompanyOffice = userAccountArray[indexPath.row].companyOffice!
PassEmployNo = userAccountArray[indexPath.row].employeeNumber!
PassAccountPin = userAccountArray[indexPath.row].accountPin!
My session variable is set to UUID() but returns blank in my debug window. I've tried each of the below lines, print does work so I know the Core Data field has a value:
PassSessionID = UUID(uuidString: userAccountArray[indexPath.row].sessionID.uuidString)!
PassSessionID = userAccountArray[indexPath.row].sessionID
print(userAccountArray[indexPath.row].sessionID)