Creating a wrapper for a C library is a very easy task with Swift, as the language was designed for interoperability with Objective-C and C, as well as for C++ language. Although this chapter focuses on using the SQLite C API with Swift, you could easily do the reverse and call Swift from these languages. This chapter shows how to create an Objective-C wrapper around the SQLite C API, which ...
© Kevin Languedoc 2016
Kevin Languedoc, Build iOS Database Apps with Swift and SQLite, 10.1007/978-1-4842-2232-4_1
1. Creating the Objective-C Wrapper
Kevin Languedoc1
(1)Montreal, Canada
Electronic supplementary material
The online version of this chapter (doi:10.1007/978-1-4842-2232-4_1) contains supplementary material, which is available to authorized users.
Get Build iOS Database Apps with Swift and SQLite now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.