I get a compiler error at the live below. I have tried other combinations as well.
Or
Is what I want to do possible?
Code Block let decoder = JSONDecoder() if let className = transation.name, let newClass = Bundle.main.classNamed(className) { let object = try decoder.decode(type(of: newClass.self), from: decompressedData) <==== Type of expression is ambiguous without more context }
Or
Code Block let object = try decoder.decode(newClass.self, from: decompressedData) <==== Type of expression is ambiguous without more context
Is what I want to do possible?