by valuearb · 9y ago · 0 comments
https://blog.halide.cam/one-weird-trick-to-lose-size-c0a4013...
I'm skeptical Swift creates significantly larger binaries, let alone 3x-4x, but I'd still use it if so. Using optionals and stronger typing is makes it easier to write correct code, and anyway we can save users from wild pointer crashes is super valuable. Far more valuable than the cost of a couple megabytes of code in an ocean of PNGs and Cocoapods.
All other things being equal, a swift app is much larger. The article also is just talking about binary sizes, not about all the other graphical assets.
You'll also be surprised how much stuff is reduced in swift 4. Swift is still in beta, lots of low hanging fruit to improve still.