uuid in ios swift 4 code example Example: swift generate uuid let uuid = UUID().uuidString print(uuid)