Instagram / IGListKit

A data-driven UICollectionView framework for building fast and flexible lists.
https://instagram.github.io/IGListKit/
MIT License
12.85k stars 1.54k forks source link

Including better Swift interfaces/wrapper APIs #871

Open jessesquires opened 7 years ago

jessesquires commented 7 years ago

Proposal

CocoaTouch frameworks can include both Swift and ObjC. IGListKit should expose better Swift interfaces by including some Swift wrapper APIs.

For example, we could:


Before, this was blocked by IG internal, but I think this is resolved now? IG internal could re-map the framework to BUCK to exclude the .swift files (in fact, this should already work by default since the BUCK file should only be including .h, .m, .mm, etc.). Thus, only the OSS version would include Swift.

cc @rnystrom can IG/FB internal handle Swift scale now? 😄

rnystrom commented 7 years ago

Should be doable, tho Buck still has some issues with mix-matched libs. I think its all fixed with Xcode 9 tho now that static libs work.

rnystrom commented 7 years ago

At the very least we could include this in he public project but just exclude it with Buck. Been thinking about this a lot, have some ideas.