I have an array of viewController class names like (ViewController class 1, 2 ,3 4)
let classArray = [VCclass1, VCclass2, VCclass3, VCclass4]
I want to check the object belongs to any of the class mentioned in class array like
if obj.isKind(of:(Any of the classArray elements) ) {
//do something
} else {
//execute else condition
}
How can I write "if condition" here?