In my Swift Project, I added a new cocoa Objective-C class (UIViewController), Xcode prompted me whether I want it to automatically generate an Objective-C bridging header file.
I am a bit confused because the generated file is ProductModuleName-Bridging-Header.h
while, as per Apple documentation, I was waiting to get a ProductModuleName-Swift.h
instead (In order to import Swift into Objective-C).
The ProductModuleName-Bridging-Header.h
is mandatory in order to be able to import Objective-C from Swift, and not the inverse.
Any clarification on this?
Thanks