Variables and Constants in Swift Explained
You use variables and constants in Swift to store information. In this tutorial you'll learn how to declare and initialize variables, how to use them, and how type inference works. Let's get started!
Type Casting in Swift Explained
You use type casting in Swift to treat an instance of one class as another, in the same class hierarchy. In this article you'll learn how to use type casting in Swift. We'll take a look at upcasting, downcasting, checking types, and their syntax.
Working with Table View Controllers in Swift
In this article I'll show you step-by-step how table view controllers work, and how you can use them. We'll go into the full gamut of UITableViewController, by diving into Object-Oriented Programming, delegation and the behind-the-scenes mechanisms of table views.
How To Use Apple’s Developer Documentation for Fun and Profit
In this article I’ll guide you through using Apple's developer documentation, articles and resources effectively – for app development, marketing and business. I’ll show you where to find them and how you can apply the information in your own app development projects.
How To Design Your App’s Database
How do you design your mobile app’s database? Every app has a database these days, whether it’s locally or in the cloud. In this article I’ll walk you through the process of app database design. We look at database tools, how to structure your data, and how to create relationships.
Promises in Swift
Promises in Swift simplify your asynchronous code. Instead of "callback hell" you create a concise chain of async functions and keep your code clean. Let's find out how!
The Basics of App Store Optimization
You use App Store Optimization (ASO) to improve your app's ranking – and get more app downloads – in the App Store. In this article, we'll discuss the 3 most essential aspects of App Store marketing: your app's title, keywords, and screenshots.
How To: Market Research for Your App Idea
Market research is essential for the success of your app. In this article, I show you exactly how I researched and tested ideas for my own apps. Let's dive in!
SOLID: The Single Responsibility Principle
The SOLID design principles are crucial to understand, for iOS developers. The first one? The Single Responsibility Principle. Sounds complex – but it's pretty simple. Do one thing only! Here's how.
How To Find Strings with Regular Expressions in Swift
How do you find strings with regular expressions in Swift? In this tutorial, we'll code a function from scratch that extracts hashtags from a string. Happy coding!
Finding The Most Profitable App Business Models
Your app's business model greatly affects how much money you make with your indie app. Which app business models fit your app best? Let's find out!
Get Started with the App Subscription Model
The subscription-based business model is a great way to monetize your app. In this article, we're going to look at how to build such a subscription powerhouse. Let's get to it!
App Ideas: The X-for-Y Approach
What do great app ideas and The Wellington International Ukelele Orchestra have in common? They're both worth talking about! In this article, you'll learn how you can come up with great app ideas with the X-for-Y approach.
Dependency Injection in Swift
Dependency Injection sounds scary... but it's actually pretty simple. On top of that, understanding dependency injection will greatly improve your code quality and productivity as a Swift developer!
Objective-C for Swift Developers
Is Objective-C dead? No – it's still prevalent in Cocoa Touch, open-source code, and the app shop next door. Learning Swift? Learn a bit of ol' ObjC, too.
Understanding Model-View-Controller (MVC) on iOS
Model-View-Controller structures the flow of data and interaction in your app. It's an exceptionally powerful software architectural pattern and it's important for iOS developers to master. Let's get started!
Shuffling Arrays in Swift with Fisher-Yates
In this tutorial, you'll learn how to shuffle an array of strings in Swift. We'll use the Fisher-Yates approach, and also work out our own algorithm for shuffling. It's great practice to brush up on your algorithms skills. Algorithms are fun!
Working with UserDefaults in Swift
UserDefaults are useful for storing small pieces of data in your app. You use it to save your app user's settings, set some "flags", or simply use it as a tiny data store. You learn how to use UserDefaults in this article.
Displaying Alerts with UIAlertController in Swift
In this tutorial, you'll learn how to use the UIAlertController class to display alert dialogs to the user of your iOS app. We'll dive into setting up the alerts, responding to user actions, and getting input from the user with text fields.
Why App Architecture is Important
You wouldn't build a house on quicksand. Would you build an app without architecture? In this article we'll find out what it means to build an app with a thoughtful architecture.
FlatMap and CompactMap Explained in Swift
Swift has a bunch of functions that are useful for transforming collections and sequences. In this tutorial, we'll discuss map(_:), flatMap(_:) and compactMap(_:).
Map, Reduce and Filter in Swift
In Swift you use map(), reduce() and filter() to transform collections, like arrays, without using a for-loop. They're quite powerful, but also challenging. Let's dive in!
For Loops in Swift (How To)
Let's get loopy! Loops are used in Swift to repeat code or to iterate over collections. This article shows you how to use for-in, while and repeat-while loops, as well as looping over ranges and collections. (That's a lot of loops...)
Get Started with Xcode Playgrounds
You can use playgrounds in Xcode to quickly write some Swift code, experiment with new syntax, and work on your Swift algorithms skill. Most of all, playgrounds in Xcode are a great way to learn Swift programming. Let's get started!
Sets in Swift Explained
Sets in Swift are powerful. They're similar to arrays and dictionaries, but also very different... The "Set" collection type is an interesting aspect of Swift programming. Let's find out how you can use it!
Hi, I'm Reinder.
I help developers play with code.
- How To Learn iOS App Development
- Learn Swift Programming The Simple Way
- How To Make An App (In 9 Steps)
- Working With Codable and JSON in Swift
- For Loops in Swift (How To)
- Displaying Alerts with UIAlertController in Swift
Code Swift right in your browser!
Go to the Swift Sandbox