As iOS developers, we are primarily interested in compatible high-performance libraries with a low memory footprint. Swift is a relatively young programming language, so the libraries for machine learning written in it are mostly amateur attempts. However, several more professional and actively growing Swift machine learning packages already exist.
Still, it would be unwise to neglect libraries written in other iOS-compatible languages such as Objective-C, C, C ++, Lua, and JavaScript, because often they are much more mature and have a broad community. Several reliable cross-platform libraries are worth mentioning in this context.
Importing C libraries into your Swift code is straightforward: you can read about C-Swift interoperability at Apple's Developer portal. Technically, C++ libraries are not compatible with Swift, but you can bridge them via...