I am new to swift and am trying to use swift in my project. I've added a new UIViewController which uses swift in my project (Objective-c). It's working fine but I can't import other objective - c files header in that swift file. Is there any other way to access other objective-c ViewControllers?
Asked
Active
Viewed 70 times
0
-
6Yes, you have to add them to the bridging header. There is a large section about it in the official [documentation](https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html) and multiple answered questions on SO too. – Sulthan Oct 17 '16 at 09:28
-
1Possible duplicate of [How to call Objective C code from Swift](http://stackoverflow.com/questions/24002369/how-to-call-objective-c-code-from-swift) – user28434'mstep Oct 17 '16 at 09:48