Want to learn iOS development? Dive right in with these tutorials about iOS development and build your own apps!
Combining Network Requests with Combine and Swift
What if a HTTP network request depends on the response of another? In this tutorial, we'll discuss in-depth how you can combine and/or chain networking tasks with Combine. We'll focus on Publisher.Zip and flatMap(), and a whole lot of cool stuff in between!
Get Started with Swift Package Manager (SPM)
Managing dependencies and 3rd-party libraries was never easier. With Swift Package Manager (SPM), you can add external libraries to your iOS project. In this tutorial, we'll discuss how to manage dependencies with SPM.
How To Beat The iOS Developer Interview
Getting ready to get hired as a professional iOS developer? In this tutorial, we'll discuss how you can best prepare yourself for the developer interview – and how to set yourself up for success!
Working with Alamofire in Swift
Alamofire is an elegant networking library written in Swift. You use it to make HTTP requests in your iOS apps. In this tutorial, we're going to discuss how you can use Alamofire for HTTP networking!
Should You Learn SwiftUI or UIKit?
Should you learn UIKit or SwiftUI? That's the question we're discussing today. UIKit is proven, extensive, the status quo. SwiftUI is the newcomer, innovative, flexible. You use both to build UIs on iOS. Which is the best tool for you?
MVVM and SwiftUI
SwiftUI is not MVVM, but they go really well together. What's the Model-View-ViewModel (MVVM) architectural pattern and how do you use it? In this tutorial, we'll discuss how you can use MVVM to better organize your app's code.
How To Detect Internet Connectivity with NWPathMonitor
Detecting an iOS app's internet connectivity is useful, especially if you want to check if the internet is reachable prior to making a network request. In this tutorial you'll learn how to detect internet connectivity changes with Reachability and NWPathMonitor.
Scheduling Local Notifications with Swift
How do you schedule, send and receive local notifications in your iOS app? In this tutorial, you'll learn how to build local notifications into your iOS app with Swift. Let's get started!
Scene Delegate vs. App Delegate Explained
What does the SceneDelegate class in your iOS project do? In this tutorial, we'll dive into the scene and app delegates, and how they affect setting up UIs on iOS. Let's go!
Working with @Binding in SwiftUI
A binding in SwiftUI is a connection between a value and a view that displays and changes it. You can create bindings with the @Binding property wrapper, and others, to pass bindings into views that require them. In this tutorial, we're going to discuss how bindings work in SwiftUI.
How To: Pass Data Between View Controllers in Swift
When your app has multiple user interfaces, you'll want to move data from one UI to the next. How do you pass data between view controllers in Swift?
@ObservedObject and Friends in SwiftUI
In this tutorial, we'll discuss an approach for 2-way data flow between an external data source and changing that data in your app. You'll learn how to work with @ObservedObject, ObservableObject, @Published, @Binding, Combine, MVVM, and much more.
Networking in Swift with URLSession
Almost every app communicates with the internet at some point. How does that work? And what Swift code can you use to make HTTP networking requests? Let's find out!
How To: Using Notification Center In Swift
Swift's NotificationCenter is super useful for sending data from one part of your app to another. But how does it work? When do you use it? You'll find out in this tutorial, including a ton of code examples, use cases, and helpful advice. Let's get started!
Working with Codable and JSON in Swift
Every webservice uses JSON nowadays. You can use the Codable protocol to encode and decode data, like JSON, to Swift objects. In this tutorial you learn how to map Swift objects to JSON with the Codable protocol. Let's get started!
How To Learn iOS App Development
In this tutorial, we'll discuss how you can learn iOS app development. When you've finished reading this article, you will have a step-by-step plan for learning how to code, and you'll be ready to build your own iOS apps from scratch!
Conway's Game of Life in Swift
Conway's Game of Life is a fun simulation game, and we're going to code it in Swift! Based on 3 simple rules, we'll see which of the pixels makes it to the next generation. It's great coding practice, perfect for a Sunday afternoon.
Working with List in SwiftUI
A List view in SwiftUI shows rows in a vertical, single column. It's a scrollable list of data that you can interact with. In this tutorial, we'll discuss how you can create and customize a List view with SwiftUI.
The @State Property Wrapper in SwiftUI Explained
With @State, you tell SwiftUI that a view is now dependent on some state. If the state changes, so should the User Interface. It's a core principle of SwiftUI: data drives the UI. But how does that work?
How To: Xcode 12 Tutorial for Beginners
We're going to take a look at the most important aspects of Xcode 12. You'll get a tour around Xcode, so you can get up to speed with Swift programming and iOS app development. It's Xcode 101!
How To Create a New Xcode App Project
You'd think that creating a new app project in Xcode is as simple as File → New → Project, but that approach actually hides interesting complexity. In this tutorial, we'll discuss Xcode's new project options and the effect on your app.
How To Fix Strong Reference Cycles in Swift
A strong reference cycle causes a memory leak in your iOS app, and that's a bad user experience. In this tutorial, we'll discuss what causes strong reference cycles and how you can resolve them.
Weak vs. Strong References in Swift
Creating a strong reference to an instance in Swift, means that the instance is kept in the iPhone's memory until you're done with it. You can also create weak references. Both are part of the memory management mechanism called ARC. In this tutorial, we'll discuss how weak and strong references work on iOS with Swift.
Automatic Reference Counting (ARC) in Swift
Automatic Reference Counting (ARC) is a mechanism to manage memory in Swift. Working with ARC concepts is essential in day-to-day iOS development. In this tutorial, we'll discuss how ARC is used to manage memory on iOS.
Self and self in Swift
In Swift, "self" typically refers to the current object within a class or struct. But there's more: "self", "Self" and even ".self". How does that work? Get ready for some introspection and metaprogramming, as we discover The Self in Swift!
Code Swift right in your browser!
Go to the Swift Sandbox