Swift and Objective-C

Share:

These questions were only shown to the developers who chose Swift or Objective-C as one of their three primary programming languages.

Share:

Which Apple platforms do you develop for?

Unsurprisingly, iOS still looms large, but Apple’s push toward universal frameworks and unifying the tech stack seems to be slowly driving interest in other Apple platforms.

It will be interesting to see if Swift can finally leap beyond the Apple ecosystem in the coming years – it took a sizable step this year.

Do you plan to use Mac Catalyst to adapt your iOS applications to macOS?

Krzysztof Zabłocki

Consultant and author of widely recognized community tools

Mac Catalyst works quite well in my experience. However, given the popularity of SwiftUI, I can see more apps going the direct native way, especially when we consider business and productivity applications where the UX and conveniences of native Mac (shortcuts, multi-window) are just better executed in fully native targets.

Do you write unit tests for your Swift or Objective-C code?

Jon Reid

Coach and trainer at Industrial Logic, author of iOS Unit Testing by Example

The percentage of developers writing unit tests in the Apple ecosystem is up from last year, but it still falls way short of other ecosystems – very few are writing tests for SwiftUI code. There is a huge opportunity for people to learn how to write cheap micro tests.

Krzysztof Zabłocki

Consultant and author of widely recognized community tools

It’s nice to see a slight improvement over last year, but I feel we are still far behind web stacks. Apple did improve its XCTest and Xcode support for TDD, and with Xcode Cloud, anyone can start using them with relative ease.

Which unit testing frameworks do you regularly use?

Do you use UI tests?

Krzysztof Zabłocki

Consultant and author of widely recognized community tools

The biggest issue with UI tests that I've observed in client projects is the speed of execution. With TDD, we can get an extremely fast feedback loop, but we can't really achieve that with UI tests.

Because of this, we often configure projects in a way that runs UI tests daily instead of each pull request (too slow, and in larger teams, it can make the pull request queues way too long).

Which dependency manager do you use?

Dave Verwer

Creator of iOS Dev Weekly and co-founder of the Swift Package Index

It’s hard to carve out time to switch your dependency management if nothing is broken, so it’s incredible to see SwiftPM take the top spot this year. With so many people planning to move to SwiftPM within the next 12 months, I expect even higher numbers next year.

Are you replacing CocoaPods dependencies with SwiftPM packages?

Do you develop with Swift on Linux?

Do you develop server-side projects using Swift?

Which UI technologies do you regularly use for your Swift code?

Jon Reid

Coach and trainer at Industrial Logic, author of iOS Unit Testing by Example

A lot of developers only write with SwiftUI. Among this 40% are a growing number of developers who have never used UIKit. The shift is real.

Swift and Objective-C:

2023

Thank you for your time!

We hope you found our report useful. Share this report with your friends and colleagues.

Join JetBrains Tech Insights Lab

Take part in surveys and UX studies to make JetBrains products easier to use yet even more powerful. For participating in our research, you’ll also get the chance to earn rewards.

Raw data Soon

We are preparing the raw data. You can leave your email to get notified when it is available for download.

By submitting this form I agree to the JetBrains Privacy Policy

If you have any questions or suggestions, please contact us at surveys@jetbrains.com.