Want to build an app? Are you already building one? Check out one of the many tutorials on app development below.
If you want to make an app for iOS, you’ll need a Mac. Learn about Xcode, Swift, and the iOS SDKs. A great way to learn more about iOS development and Swift programming is to build your own app projects. You can also use few alternatives for Windows or Linux.
If you want to publish your apps in the App Store, you’ll need an Apple Developer Account. You can always run your apps on your own iPhone, with Xcode, for free.
Let’s get to it!
Properties in Swift Explained
You use properties in Swift to tack some data onto an object, like 'cookie.flavor = "Chocolate Chip"'. Properties in Swift pack quite a punch! In this tutorial, we're going to discuss stored/computed properties, getters and setters, and property observers.
Classes in Swift Explained
Classes are one of the most fundamental building blocks of Swift code. In this tutorial, we're going to discuss how classes work, what instances are, how inheritance works, and much more.
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!
Struct vs. Class in Swift Explained
What's the difference between classes vs. structs? They're so alike! It's best to use structs by default, and classes in specific scenarios – but when? Let's find out!
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!
Quit Coding? Here's How To Start Building Apps Again
Coding is hard, right? It's easy to give up – and that's OK. Here's how you can get back to coding again, after you've quit.
Optionals in Swift: The Ultimate Guide
Do you find Swift's optionals confusing? In this article, I'll give you a complete tour of optionals in Swift. We'll find out what optionals are, why they're useful, and how you can work with them to make your code safer, bug-free and easier to maintain.
Working with Recursive Algorithms in Swift
A recursive function is a function that calls itself. It's an intriguing approach to solve specific coding challenges. In this article, you'll learn how to work with recursion in Swift.
Learn Swift Programming The Simple Way
Swift is an easy to learn programming language for iOS, macOS, and more. Learning how to code Swift is simple, a lot of fun, and you can build awesome apps with it! In this article, we'll discuss simple approaches to learn Swift coding.
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 Use "where" in Swift
You use the 'where' keyword to filter things in Swift. Loop over all items 'where x = true', for example. It's simple and powerful! In this tutorial, we'll discuss the various scenarios in which you can use 'where' in Swift.
Fun with print() in Swift
You use print() in Swift to print text to the Console. It's super useful for finding out what's going on in your code. In this tutorial, we'll discuss how you can customize print() to code more productively.
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!
Keypaths in Swift Explained
With keypaths in Swift, you're referencing a property, as opposed to its value. You can pass these keypaths around in your code, and create all sorts of metaprogramming mayhem with it. Let's find out more!
Working with Files on iOS with Swift
You use FileManager to work with files and directories on iOS. It's a Swift API that helps you read from, and write to, various data and file formats. In this tutorial, you learn how to work with files on iOS with Swift.
Storing Data with NSCoding and NSKeyedArchiver
You can use NSCoding and NSKeyedArchiver to save and load simple data objects with Swift. It's perfect for scenarios when you don't need a more complex tool, like Core Data. Let's dive in!
Strings in Swift Explained
You use strings in Swift to represent text. They're strings of characters, use the String value type, and are stored with the intriguing Unicode/UTF-8 data format. Let's find out more about strings in Swift!
Code Swift right in your browser!
Go to the Swift Sandbox