Objective-C or Swift in 2022?

There is one clear winner

Steven Curtis
2 min readOct 4, 2022
Photo by Robert Anasch on Unsplash

There has been much talk of the death of Objective-C, yet it is still possible to start a Project with Objective-C in 2022.

Is this going to be something you want to do?

Is it something you should do? Read and find out.

Advantages of Swift

Optionals

Error handling

Closures

Type safety

Speed — Almost as fast as C++

ARC

Dynamic library

Pattern matching

Swift playgrounds

Unified files

No pointers — So safer

Better memory management

Advantages of Objective-C

Interoperability with C++ and objective C++

Dynamic features like method Swizzling

A well-tested, stable language

Easy use of private APIs

Header and implementation files separate out interface from implementation

Fast compilation speed

Disadvantages of Objective-C

--

--