3 ms·
If you use Swift and consume the library in an Objective-C project (which is perfectly possible) you will add the Swift ABI to your project automatically which
by dep_b 10y ago
If you use Swift and consume the library in an Objective-C project (which is perfectly possible) you will add the Swift ABI to your project automatically which adds about 10MB to your project. The ABI needs to be added because the ABI isn't stable yet.
For mobile apps that's still a big consideration.
The other way around is much easier, that's why he proposes Swift wrappers around Objective-C code that allow a Swifty interface with your libraries. But often using generics and nullability will already help a lot.
- chris_7 10y agoMy presumption is that you're already using Swift in your app when you decide to write/break out a component framework and open-source it. If you're using Objective-C, keep doing that, but then this isn't really a question to begin with.