I try to integrate Swift
code in my app.My app is written in Objective-C
and I added a Swift
class. I\'ve done everything described he
Don't create the header file yourself. Delete the one you created.
Make sure your Swift classes are tagged with @objc
or inherit from a class that derives (directly or indirectly) from NSObject
.
Xcode won't generate the file if you have any compiler errors in your project - make sure your project builds cleanly.