What Language Are iPhone Apps Written In?

iPhone apps are written in Swift, mostly with SwiftUI. What Objective-C, React Native and Flutter are, and whether you need to learn any of them.

By Sigsten Gustavii· · 8 min read

Build your own film watchlist with Borel

Build this app

iPhone apps are written mainly in Swift, a programming language Apple made for its own devices and introduced in 2014. Before Swift, apps were written in Objective-C, and plenty of older code still is. Today, most new iPhone apps use Swift together with SwiftUI, Apple's toolkit for building screens, while some apps that also run on Android use a cross-platform tool such as React Native or Flutter.

If that sounds like a lot of names, don't worry. This guide explains each one in plain words: what it is, what it is used for, and whether you need to learn it to make an app of your own.

What is Swift?

Swift is Apple's programming language for iPhone, iPad, Mac, Apple Watch and Apple TV. Apple describes it as a powerful and intuitive language, designed to be safe and fast. It is open source, which means anyone can see how it is made, and it is developed in the open at swift.org.

For a beginner, the important thing about Swift is that it reads more like English than older languages did. A line that puts a greeting on screen is just the word Text followed by the greeting in brackets. You still need to learn its rules, but it was built with newcomers in mind, and Apple teaches it with a free app called Swift Playground.

What was Objective-C, and is it still used?

Objective-C was the main language for Apple software from Mac OS X, around 2001, until Swift arrived, including the iPhone's whole early history. It is powerful but harder to read, full of square brackets and long names. Swift was designed to replace it for new work.

Objective-C hasn't disappeared. Many large, older apps still contain it, and Swift and Objective-C can live side by side in the same project. But if you are starting today, there is no reason to begin with Objective-C.

What is the difference between Swift and SwiftUI?

This trips people up because the names are so close. Swift is the language: the grammar you write instructions in. SwiftUI is a toolkit written for Swift that draws what you see: screens, lists, buttons, text and animations. You describe what a screen should show, and SwiftUI works out how to draw it on every size of iPhone and iPad.

Before SwiftUI arrived in 2019, screens were built with UIKit, an older toolkit where you wrote more step-by-step instructions. Both still work and both are Apple's. New apps mostly start with SwiftUI and reach for UIKit only for the odd thing SwiftUI doesn't cover. Our comparison of SwiftUI and UIKit goes into the details.

The words you'll hear about iPhone app code
NameWhat it isWho makes itUsed for
SwiftA programming languageApple, as open sourceAlmost all new iPhone apps
Objective-CAn older programming languageApple maintains itOlder apps and some libraries
SwiftUIA toolkit for screens, in SwiftAppleMost new iPhone app screens
UIKitAn older toolkit for screensAppleOlder apps and special cases
XcodeThe program developers write and build apps inAppleEvery iPhone app, on a Mac

Can you write iPhone apps in other languages?

Yes. Some teams want one app for iPhone and Android without writing it twice, so they use a cross-platform tool. The two most common are:

  • [React Native](https://reactnative.dev/), from Meta. Apps are written in JavaScript or TypeScript, the languages of the web, with React. It suits teams who already build websites.
  • [Flutter](https://flutter.dev/), from Google. Apps are written in Dart, a language Google made, and Flutter draws its own buttons and lists on both platforms.

There are others, like .NET MAUI in C#, and games are usually made in engines such as Unity, which uses C#. Whatever language an app is written in, an iPhone version still has to be built and signed with Xcode on a Mac before it can go on a phone or the App Store.

Cross-platform tools save work if you need both platforms from the start. The trade-off is that the app doesn't always look and feel exactly like the rest of the iPhone, and new Apple features can take a while to reach them. Our guide on native iOS compared with React Native weighs this up, and the glossary explains native apps and cross-platform apps.

What language are Android apps written in?

Android apps are mostly written in Kotlin, which Google recommends for new Android apps, and older ones in Java. They are built in Android Studio, which runs on Windows, Mac and Linux. A Swift app doesn't run on Android, and a Kotlin app doesn't run on iPhone, which is exactly why cross-platform tools exist.

The usual language for each kind of app
Kind of appUsual languageBuilt in
iPhone and iPad, nativeSwift (with SwiftUI)Xcode, on a Mac
Android, nativeKotlinAndroid Studio
Both, with React NativeJavaScript or TypeScriptXcode for the iPhone version
Both, with FlutterDartXcode for the iPhone version
GamesC# in Unity, or C++ in UnrealThe engine, then Xcode for iPhone

Where do you write Swift?

Swift is written in Xcode, Apple's free program for making apps, which runs only on a Mac. Xcode is where the code, the pictures and the settings of an app live together, and it is also what turns the code into an app a phone can run, with a pretend iPhone called the iOS Simulator to try it on. On an iPad, Apple's free Swift Playground app lets you write Swift and make simple apps without a Mac.

That Mac requirement is the main hurdle for people on Windows. Browser-based builders get around it by running Xcode on their own Macs, so you never install it yourself.

Which language should a beginner learn for iPhone apps?

If you want to make iPhone apps by hand, learn Swift with SwiftUI. It is what Apple teaches, what its documentation shows, and what most iPhone developers use. A sensible path looks like this:

  1. Start with Swift Playground on an iPad or a Mac. Its lessons teach the basics without any setup.
  2. Move to Xcode on a Mac and follow Apple's free SwiftUI tutorials, which build a small app screen by screen.
  3. Make one tiny app of your own, like a tip calculator or a list of your favourite films, and finish it.
  4. Add one new thing at a time: saving data, a second screen, a photo from the camera.
  5. Put it on your own iPhone and use it for a week before starting the next one.

Expect a few months of regular practice before you are comfortable. Our guide on whether you should learn Swift helps you decide if that time is worth it for what you want to make.

Do you need to learn a programming language to make an app?

No, not for many apps. Learning Swift is rewarding, and it is the right choice if you want to become a developer or understand every line of your app. But if what you want is the app itself, an AI app builder can write the code for you from a description in plain words.

[Borel](/) is the easiest way to do that for a real native iPhone app. You describe the app, and Borel writes it in Swift with SwiftUI, the same language and toolkit a developer would choose, then Xcode builds it on Borel's own Mac. It opens on a live iPhone in your browser, on Windows or a Mac, and you change it by asking. You never have to read the code, but it is yours: you can download the SwiftUI source with a project file and open it in Xcode, so a developer can take it further later or you can learn from it.

A prompt to start from
Make a simple app where I write down films I want to watch, mark the ones I've seen, give each one a rating out of five, and see my top-rated films at the top.

Borel's free plan gives you 5 credits a day to build and try apps in the simulator. With Pro, from $25 a month, Borel Companion installs the app on your iPhone, and with Pro, Publish sends it to the App Store under your own Apple Developer account ($99 a year). Borel makes iPhone and iPad apps only, so if you need Android too, a cross-platform tool is the better fit.

Can AI write Swift well?

AI models have read a great deal of Swift and write it well for everyday apps: lists, forms, tabs, saving data, maps and the camera. Where they struggle is the same place beginners struggle: unclear instructions. A builder that plans the app with you before writing, compiles every change with Xcode and fixes what doesn't build gets far more reliable results than pasting code from a chatbot. Our post on whether ChatGPT can make an iPhone app shows the difference.

The Bottom Line

iPhone apps are written in Swift, usually with SwiftUI for the screens, and built in Xcode on a Mac. Objective-C is the older language you'll still meet in older apps, and React Native and Flutter let one code base run on iPhone and Android. Learn Swift if you want to write apps by hand. If you just want the app, describe it to Borel and let it write the Swift for you.

Questions people ask

Are iPhone apps written in Swift?

Most new ones are. Swift is Apple's language for its devices, and SwiftUI is the toolkit most new apps draw their screens with. Older apps often contain Objective-C too.

Can I make an iPhone app in Python?

Not in the usual way. Python isn't a standard language for iPhone apps. A few tools can package Python, but almost every iPhone app is written in Swift, Objective-C, JavaScript with React Native, or Dart with Flutter.

Is Swift hard to learn?

It is one of the friendlier languages to start with, and Apple teaches it for free with Swift Playground. Still, expect a few months of practice before you can build an app of your own comfortably.

Is SwiftUI a language?

No. Swift is the language; SwiftUI is Apple's toolkit, written for Swift, that draws the screens, buttons and lists you see.

Can one app be written for iPhone and Android at once?

Yes, with React Native (JavaScript or TypeScript) or Flutter (Dart). The iPhone version still has to be built with Xcode on a Mac.

What language does Borel write apps in?

Swift with SwiftUI, built with Xcode on Borel's Mac. You can download the source and open it in Xcode.

I love Swift, and I also think nobody should need to learn it just to get an app they want. Learn it if it excites you; otherwise, let Borel write it.

– Sigsten

Build your own film watchlist

Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.

An app where I write down films I want to watch, mark the ones I've seen, give each one a rating out of five, and see my top-rated films at the top.
Build this app

Keep reading