There is plenty of documentation available on how to use C/C++/Objective-C code in Swift. There is also information about using Swift in Objective-C.
However, I would like to know: Is it possible to use a Swift library in C or C++ code?
There is plenty of documentation available on how to use C/C++/Objective-C code in Swift. There is also information about using Swift in Objective-C.
However, I would like to know: Is it possible to use a Swift library in C or C++ code?
You can use swift from Objective C and Objective C is a strict superset of C. So if you wrap your swift function in Objective C then you can call it from C. See this thread on calling ObjC from C.