3 ms·
It's interesting to see no iOS example code in Swift. I know that the Swift adoption rate at Facebook is low for certain reasons, but I was hoping it would go
by stigi 8y ago
It's interesting to see no iOS example code in Swift.
I know that the Swift adoption rate at Facebook is low for certain reasons, but I was hoping it would go up, or at least be of concern for open sourced projects.
- accatyyc 8y agoAs someone maintaining Obj-C libraries, I can see why. Usually the Swift examples are 90% the same thing so maintaining both is just a boilerplatey hassle. And really, I expect all competent iOS developers to be able to use an Objective-C API from Swift without even thinking about it, much less require specific examples. With that said, I do find it useful to write unit tests in Swift, just to see that the Swift API looks as expected. So that’s one way to add examples.
- amrox 8y agoWe write our internal demo apps for our iOS framework in Swift for this reason as well.
- dirtylowprofile 8y agoYou can just use a Bridging Header