I have two project, one with swift and the other with objective-c. I want to call/change page to my sub project (objective c) from my main project (swift) but it says Cannot find type 'NameViewController' in scope.
this is how my project looks like
and this is the code that I use to call/change view to sub project and get the error
let common = storyboard?.instantiateViewController(withIdentifier: "Main") as! NameViewController
do anyone have any idea why and how to do the correct way?

Add the following line to the top of your code: