There's this AViewController which is written in Swift. Now in my Obj C manager class I want to check the type of the viewcontroller. But it doesn't read because Obj C read the class name as "ProjectName.AViewController". How can we have the below mentioned check?
//Swift class
class AViewController: UIViewController {
}
//Obj C - Manager class
- (void)sampleMethod:(UIViewController *)viewController {
if ([viewController isKindOfClass:[AViewController class]]) {
//Action
}
}