I’d like to write some native code in C or C++ to be used with Swift on iOS. This code would mainly be invoked from Swift but would also need to callback to Swift as well, like shown in this diagram:

What is the mechanism for interfacing Swift with C and C++?
Источник: https://stackoverflow.com/questions/558 ... ith-c-or-c
Мобильная версия