I'm using Objective-C and I need to implement some third party tools using CocoaPods, but it is available in Swift, so I need to bridge. How can I bridge Objective-C to Swift?
Asked
Active
Viewed 48 times
1
-
Check this :- https://stackoverflow.com/questions/24102104/how-to-import-swift-code-to-objective-c – AshvinGudaliya Dec 28 '17 at 12:51
-
The library you want to use is in Swift, or in ObjC? – jscs Dec 28 '17 at 13:48
-
Add the @objc keyword before the swift class name which you want to access in objective-c files. – Nisar Ahmad Dec 28 '17 at 14:24