# Should you move from Objective-C to Swift

- Speaker: [Yoni Tsafir](/wiki/speakers/yoni-tsafir.md)
- Event: [Reversim Summit 2015](/wiki/years/2015.md)
- Video: https://www.youtube.com/watch?v=GZzmFGFGVoo
- Transcript: [/transcripts/2015/24-GZzmFGFGVoo.md](/transcripts/2015/24-GZzmFGFGVoo.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Mobile Development](/wiki/topics/mobile-development.md), [Software Engineering](/wiki/topics/software-engineering.md), [Technical Debt](/wiki/topics/technical-debt.md), [Performance](/wiki/topics/performance.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker explores whether developers should transition from Objective-C to Swift, detailing the language's history, syntax improvements, and community growth. They examine the practical challenges of adoption, including tooling immaturity, lack of runtime features, and performance trade-offs compared to C. Ultimately, the speaker offers guidance on when it is appropriate to adopt Swift for new projects or existing codebases.

## Key points

- [2:13](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=133s) Swift was introduced by Apple in 2014 as a modern replacement for Objective-C with rapid version releases.
- [4:22](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=262s) Swift offers cleaner syntax improvements over Objective-C, including type inference, closures, and the absence of semicolons.
- [6:24](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=384s) New features like generics, tuples, and built-in optionals enhance safety and expressive power.
- [12:42](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=762s) Swift lacks Objective-C runtime features like method swizzling, which limits certain testing and mocking frameworks.
- [14:56](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=896s) The strict optional type system prevents null-pointer errors at the cost of requiring frequent unwrapping boilerplate.
- [18:08](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=1088s) Interoperability allows mixing Swift and Objective-C, though complications arise with C++ and unit testing contexts.
- [21:33](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=1293s) Performance benchmarks between C and Swift show that Swift can lag behind in certain compute-heavy algorithms.
- [31:52](https://www.youtube.com/watch?v=GZzmFGFGVoo&t=1912s) The speaker recommends learning Swift immediately, adopting it cautiously for isolated features in existing apps, and considering it for new greenfield projects depending on team constraints.

## Takeaways

- Learn Swift now to stay relevant in the iOS development ecosystem.
- Avoid mixing Swift into existing codebases that rely heavily on C++ or extensive unit tests.
- Be prepared for tooling limitations and compilation overhead when adopting bleeding-edge language versions.

## Questions this talk answers

- Should I rewrite my existing Objective-C application in Swift?
- How well does Swift interoperate with existing Objective-C code and libraries?
- What are the performance implications of using Swift compared to C or Objective-C?

## Technologies

Swift, Objective-C, iOS, XCode, C++, Python

## Tags

ios development, language comparison, migration, objective-c, performance, swift
