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
There is two condition,
So, For that purpose, you have to follow this steps:
Go to Build Settings and perform below steps with search,
After that, clean and rebuild your project.
In that case,First write "@objc" before your class in swift file.
After that ,In your objective c file, write this,
#import "YourProjectName-Swift.h"
In that case, In your header file, write this,
#import "YourObjective-c_FileName.h"
I hope this will help you.