Featured iPhone Development Resources iOS Development Tutorials Swift

Tutorial: A Quick Guide To Using C Libraries Within Swift Code

Last year I mentioned a nice tutorial on dealing with common issues when moving from Objective-C to Swift another common issue occurs when using C libraries within your Swift code.

Here’s a tutorial submitted by Atomic Object from Matt Behrens that demonstrates how to include C based libraries within your Swift code, and the basics of using a C library within Swift code.

Specifically the tutorial covers:

Creating a bridging header in Xcode
Creating a module map for using the library in frameworks
Using a C library in Swift using the common crypto as an example

You can find the tutorial over on the Atom Object blog.

A nice guide for those working with C libraries in Swift.