I have a Swift project and have add a cocoapod, which is written in Objective-C. It has header and implementation files. From what I understand, to use/import these files in
You need to create the header file first. It is a regular Objective-C header file and should be named
. For any Objective-C headers you want Swift to know about add an import statement to the newly created header file. Then follow your previous steps.
There is also a hidden header that gets created for you called
. If you need to access any Swift classes from an Objective-C file import this header.