Learn more about SwiftUI

Grouping Liquid Glass components using glassEffectUnion on iOS 26

Published on: July 2, 2025

The Apple Maps app features something that looks like a vertical toolbar where they’ve stacked two grouped buttons on top of each other using a Liquid Glass effect. In this post, you’ll learn how you can make use of a GlassEffectContainer and the glassEffectUnion view modifier to achieve this effect.

Read post

Designing custom UI with Liquid Glass on iOS 26

Updated on: July 10, 2025

Building custom UI with Liquid Glass is easier than you think! Learn how you can leverage animations, the glassEffect view modifier, and a GlassEffectContainer to achieve a fun look and feel that will feel right at home on iOS 26!

Read post

Exploring tab bars on iOS 26 with Liquid Glass

Updated on: July 7, 2025

Liquid Glass drastically changes how you app looks and feels when you’ve used default system components in your UI. In this post we look at how TabView changes with Liquid Glass, and how this forces us to rethink aspects of how certain interactions in our apps should work.

Read post

Choosing between LazyVStack, List, and VStack in SwiftUI

Updated on: June 26, 2025

SwiftUI offers several approaches to building lists of content. You can use a VStack if your list consists of a bunch of elements that should be placed on top of each other. Or you can use a LazyVStack if your list is really long. And in other cases, a List might make more sense. In […]

Read post

Using Instruments to profile a SwiftUI app

Updated on: April 30, 2025

A key skill for every app developer is being able to profile your app’s performance. Your app might look great on the surface, but if it doesn’t perform well, it’s going to feel off—sometimes subtly, sometimes very noticeably. Beautiful animations, slick interactions, and large data sets all fall flat if the app feels sluggish or […]

Read post

Mesh Gradients in SwiftUI explained

Updated on: July 7, 2025

With iOS 18, we have the possibility to create mesh gradients. Mesh gradients are a really nice way to create very cool UI effects. In this post, we’re going to explore exactly what mesh gradients are, how we can use them, and how we can even animate them to look really cool. We’ll start off […]

Read post

Animating SF Symbols on iOS 18

Updated on: September 25, 2024

Over the years, Apple has been putting tons of work into the SF Symbols catalog. With SF Symbols, we’re able to leverage built-in iconography that will look familiar to users while also fitting into the Apple ecosystem very nicely. The fact that there’s thousands of symbols to choose from makes it a highly flexible and […]

Read post

Adding values to the SwiftUI environment with @Entry

Updated on: July 7, 2025

Environment values are a convenient way to pass data down a deep view hierarchy. We can add values to the environment ourselves, but the syntax is clunky and verbose. In this post you’ll learn about the built-in @Entry macro which makes adding new values a breeze.

Read post

Using PreviewModifier to build a previewing environment

Published on: July 10, 2024

Xcode 16 and iOS 18 come with a feature that allows us to build elaborate preview environments using a new PreviewModifier protocol. This protocol allows us to define objects that can create a single context or environment that’s cached and used across your SwiftUI previews. This is useful because it means that you could, for […]

Read post

Mixing colors in SwiftUI and Xcode 16

Updated on: July 22, 2024

SwiftUI in iOS 18 and macOS 15 has gained a new trick; it can mix colors. This means that it’s now possible to take a color and modify it by applying another color to it using a provided percentage. The video below shows how this works: Notice how the large rectangle updates its color to […]

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