简体   繁体   中英

Converting objective-c frameworks and third party code to swift

I know those objective-c files must be converted to swift manually (with some help from several online converting tools), the question is...

how about frameworks that're added to the project? And third parties written in objective-c added via cocoapods?

在此处输入图片说明

Do I need to remove those frameworks, re-add third parties of their swift version, or let Xcode warn me with any possible error? Maybe just keep them and add some bridge file to cope with those?

Need some information before I mess everything up...

Any link or file guide would be appreciated!

Obj-c frameworks can all be used in swift and will automatically be bridged to swift so you can access them from swift code (create an obj-c bridge, google it). You can add your own .h files to this obj-c bridge file too and use your obj-c code in swift. There's no need to search for swift libraries or anything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM