How to get class name of UIViewController Class in swift
UIViewController
In Objective C, we can do something like this :
self.appDelegate = (shAppDeleg
Here is a swift3 version of isuru's answer.
extension UIViewController { var className: String { return NSStringFromClass(self.classForCoder).components(separatedBy: ".").last!; } }