Open wieweb opened 6 years ago
String(reflecting: type(of: item))
could be used instead. It returns the full class name. Including Module though, e.g. MyApp.TestOne.Item
(if you try it in Playground it'll be something like __lldb_expr_77.TestOne.Item
)
This will force a crash because
String(describing: type(of: item)
will always returnItem
instead of neededTestOne.Item
,TestTwo.Item
. So all Items do have the same identifier and cellDescriptor will fail.