Recent articles

Jump to a random post

3 tips to work through a technical coding interview

Published on: September 7, 2020

If you’re a programmer looking for a job it’s very likely that you’ll have to do a coding interview at some point. Every company conducts these interviews differently. Some may have you work through several heavy computer science problems, others may present you with a task that’s related to the job you’re interviewing for and […]

Read post

Dispatching async or sync? The differences explained

Updated on: June 15, 2021

When writing iOS apps, we regularly run into code that is asynchronous. Sometimes you know you’re writing something that will run asynchronously and other times you’re passing a completion handler to code that may or may not run asynchronously on a different dispatch queue. If you’re familiar with using DispatchQueue.main, you have probably written code […]

Read post

Understanding Swift’s OptionSet

Published on: August 18, 2020

Every once in a while I look at a feature in Swift and I fall down a rabbit hole to explore it so I can eventually write about it. The OptionSet protocol is one of these Swift features. If you’ve ever written an animation and passed it a list of options like this, you have […]

Read post

Fetching objects from Core Data in a SwiftUI project

Updated on: August 18, 2020

When you’ve added Core Data to your SwiftUI project and you have some data stored in your database, the next hurdle is to somehow fetch that data from your Core Data store and present it to the user. In this week’s post, I will present two different ways that you can use to retrieve data […]

Read post

Using Codable with Core Data and NSManagedObject

Updated on: April 5, 2021

If you’ve ever wanted to decode a bunch of JSON data into NSManagedObject instances you’ve probably noticed that this isn’t a straightforward exercise. With plain structs, you can conform your struct to Codable and you convert the struct from and to JSON data automatically. For an NSManagedObject subclass it’s not that easy. If your Core […]

Read post

Setting up a Core Data store for unit tests

Updated on: August 4, 2020

Unit testing is an important skill in the toolbox of any engineer. Knowing how to write a reliable, robust test suite helps you write reliable and robust code. If you’ve followed my introduction to unit testing part one and part two, or if you’re experienced with unit testing you know that your tests should run […]

Read post

Using Core Data with SwiftUI 2.0 and Xcode 12

Updated on: September 30, 2020

In Xcode 12 you can create projects that no longer use an AppDelegate and SceneDelegate to manage the application lifecycle. Instead, we can use Swift’s new @main annotation to turn a struct that conforms to the App protocol into the main entry point for our applications. When you create a new project in Xcode 12, […]

Read post

Understanding the importance of abstractions

Published on: July 13, 2020

As developers, we constantly deal with layers of abstractions that make our lives easier. We have abstractions over low level networking operations that allow us to make network calls with URLSession. Core Data provides an abstraction over data persistence that can be used to store information in an sqlite database. And there are many, many […]

Read post

Handling deeplinks in a SwiftUI app

Updated on: July 7, 2025

Handling deeplinks is an essential feature for lots of apps. Deeplinks help with sharing contents and they allow you to help users jump right to any pages they might be interested in without tapping through your app. In this post we’ll explore how you can set up deeplinks and handle them with SwiftUI’s onOpenURL.

Read post

Expand your learning with my books

Practical Core Data header image

Learn everything you need to know about Core Data and how you can use it in your projects with Practical Core Data. It contains:

  • Twelve chapters worth of content.
  • Sample projects for both SwiftUI and UIKit.
  • Free updates for future iOS versions.

The book is available as a digital download for just $39.99!

Learn more