Swift is now using more and more, and some of the mainstream frameworks or better-performing demos have been written using Swift. So, learn how to invoke Swift in an OC project.
The main use of a bridge file, this bridge file usually when you import Swift code or create Swift code will ask you whether to create, this time to choose to create, and then you can introduce a bridge file in the OC project, so that you can create swift objects, using their corresponding methods.
But there may be a situation where the Swift proxy method cannot be called in OC, the following two learning materials have a more detailed introduction to this piece, you can learn.
Reference: Hybrid programming for Ios-swift and OBJECT-C
Unable to invoke Swift Proxy method workaround in OC: Call to Swift's proxy in OC
Finally, I wrote a small demo of my own:
Demo:ocplayswift (Extract code: 4734)
Using the swift third-party framework in OC Code