Native iOS (Swift + SwiftUI)
Build iPhone and iPad apps with Swift and SwiftUI, Apple's declarative UI framework, using Xcode on a Mac.
Beginner · about 4 hours · difficulty 3/5
Learn first: Development Environment, Emulators & Devices
Native iOS development uses Swift and SwiftUI, with UIKit still present in many existing apps. It is the right path if you want to specialise in Apple platforms, need the most polished platform feel, or plan to use Apple-only features like widgets, App Intents or watchOS.
Strengths
- Best integration with Apple frameworks and the Human Interface Guidelines.
- SwiftUI code also targets iPadOS, macOS, watchOS and visionOS.
- Xcode Previews show UI changes without launching the app.
How a project looks
Create an "App" project in Xcode. The entry point is a type marked @main conforming to App, which shows a ContentView. Views are structs with a body property built from VStack, Text, Button and modifiers like .padding(). Swift Package Manager handles dependencies.
Trade-offs
- Requires a Mac, and publishing requires a paid Apple Developer Program membership.
- iOS only; Android needs a separate codebase.
Good enough to move on: you built the starter app, changed its view, and used a live preview.
Key concepts
- Creating an app project in Xcode
- The App and View protocols
- Xcode Previews
- Swift Package Manager
- UIKit awareness: Needed for older codebases
- Apple Developer Program membership
Other options for this step
- React Native with Expo: Build real native apps for Android and iOS from one JavaScript/TypeScript codebase, using Expo for tooling, builds and updates.
- Flutter: Build apps for Android, iOS and more from one Dart codebase, with a rendering engine that draws every pixel for consistent UI.
- Native Android (Kotlin + Jetpack Compose): Build Android apps the way Google recommends: Kotlin as the language and Jetpack Compose for declarative UI.
Mini project
Build a SwiftUI app with a list of five favourite books and a detail screen showing the author and a short note.
Check yourself
What do you need, hardware and accounts included, to go from an Xcode project to an app on the App Store?
Free resources
- SwiftUI tutorials (Apple)
- The Swift Programming Language (Swift.org)