Swift’s type system is designed to make our lives easier by enforcing strict rules around what we can and cannot do in our code. This is undoubtedly a great thing and it encourages programmers to write better, more correct code. However, it can seem extremely prohibitive when interacting with legacy code bases, particularly C-based libraries. It is a reality that many C libraries abuse types in su
![Using Legacy C APIs with Swift — SitePoint](https://cdn-ak-scissors.b.st-hatena.com/image/square/bed6a567933fd1a981fb63c00f2908d62ae0b690/height=288;version=1;width=512/https%3A%2F%2Fwww.sitepoint.com%2Fwp-content%2Fthemes%2Fsitepoint%2Fassets%2Fimages%2Ficon.mobile.png)