I have the following problem: I get an instance of a class passed and want to know the name of the class of this instance. How to get this?
OBJC:
NSStringFromClass([instance class])
SWIFT
From instance:
String(describing: YourType.self)
From type:
String(describing: self)