extension ExampleClass { func getPropertyNames() -> [String] { return Mirror(reflecting: self).children.flatMap { $0.label } } }
let className = NSStringFromClass(type(of: self)).split(separator: ".").last!
Last updated 6 years ago