How To: Working with Plist in Swift
A property list, or plist, is an XML file that contains basic key-value data. You can use a plist in your iOS apps as a simple key-value data store. Let's find out how that works!
How To Find an Item in an Array in Swift
How do you find an item in an array in Swift? Let's find out! In this article you'll learn how to use the various generic functions to find matching items in an array.
Target-Action Explained in Swift
Target-Action is a mechanism that's used to call a certain function on a certain object. It's prominently used in many iOS frameworks and libraries, although you may not have given it any thought until now. Let's find out how it works!
Working with Timers in Swift
Timers are super handy in Swift, from creating repeating tasks to scheduling work with a delay. This article explains how to create a timer in Swift. Time's ticking – let's get to it!
Switch Statements in Swift Explained
In this article you learn how to use the switch statement in Swift. With switch you can inspect a value and match it with a number of cases. Let's get to it!
How To Get Freelance App Development Projects
Thinking about going it alone as an iOS developer? Here's how you find clients, get freelance iOS projects, and build your business as a freelance iOS developer.
Enums in Swift Explained
With Swift's enums you can organize groups of values that are related. They're perfect for managing state in your app, and you can use them in a type-safe way in your code. Let's find out how they work!
Let's Solve The FizzBuzz Challenge in Swift
FizzBuzz is a legendary coding challenge. You simply must give it a try! But... what approaches can you use to solve FizzBuzz with the Swift programming language?
Lazy Computed Properties in Swift
Lazy computed properties are super useful in Swift programming. But you can't just make any computed property lazy. How do you get around that? Learn how to use lazy computed properties in this article. Enjoy!
An Extensive Guide to WKWebView
Delegation in Swift Explained
Delegation, also known as the Delegate pattern, is frequently used in practical iOS development. It's a must-have in your iOS developer's toolbox, and in this tutorial we're going to figure out how delegation works.
Protocols in Swift Explained
Protocols are prominently used in Swift. What makes them so elegant and powerful? In this article you'll learn how to work with protocols in Swift and why they are useful for practical iOS development.
Conditionals in Swift with If, Else If, Else
In Swift you use conditionals to make decisions in your code, with if, else if and else. If this happens, then do that. In this article you'll learn how to use conditionals in your Swift code. We'll get into boolean logic, expressions, operators, and the syntax of if, else if and else blocks. Let's get started!
Object-Oriented Programming (OOP) in Swift
Object-Oriented Programming (OOP) helps you structure your Swift code. This article introduces classes, objects, properties, functions, and inheritance, and how to use them in Swift. Let's get started!
Functions in Swift Explained
In Swift you use functions to perform specific tasks in your code. It's that simple! In this article you'll learn how to define and call functions, how to use function parameters, and how to return a value from the function.
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!
Hi, I'm Reinder.
I help developers play with code.
Get the Weekly
- How To Learn iOS App Development
- Learn Swift Programming The Simple Way
- How To Make An App (In 9 Steps)
- For Loops in Swift (How To)
- Pass Data Between View Controllers In Swift
- Xcode 12 Tutorial for Beginners
Code Swift right in your browser!
Go to the Swift Sandbox