Anybody know of an example of a C++ library that someone has bridged up to Swift? Or does one need to go Objective-C++ and then to Swift?
Conversation
You have to go to Obj-C++ first, yes.
1
Have you done this? Any tips?
2
Replying to
Yes, in small quantities. It wasn’t so bad. Import the Obj-C++ header from your Swift bridging header; keep the C++ 100% in the .mm.
Replying to
PImpl pattern comes in useful here if you need C++ ivars (e.g. an STL type.)
1


