'How to use swift class in Objective C on Swift project
I wanted to learn how objective c works so i create a new view controller with objective c within my swiftapp. I have managed to connect objective-c to swift but not swift to Objective C.
I tried googling it, and my project does not have module name, i think it's probably because it's a swift project.
so i use product name because i didnt do anything on the project settings except for lowering the ios version
and this is what i got
so how does one add swift class to objective c in swift project? Thanks
Solution 1:[1]
add this
#import "yourTargetName-Swift.h"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ali hassoun |

