Can I call page in sub project from main project in swift IOS?

52 Views Asked by At

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

enter image description here

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?

1

There are 1 best solutions below

1
Arik Segal On

Add the following line to the top of your code:

import FaceMesh