Learn all about Swift with these posts

Swift is a powerful and intuitive programming language for macOS, iOS, watchOS, and tvOS.

MusicKit and App Clips

A real-world example of the limitations of App Clips using MusicKit as an example, and how to work around them.

How to create an App Clip for your app

Learn how to create an App Clip for your app and how to generate codes you can share with your users to launch said App Clip.

Named capture groups in Swift regular expressions

How to set and retrieve named capture groups in Swift regular expressions using SwiftRegex and NSRegularExpression.

Understanding mergeable libraries

An initial deep dive into what mergeable libraries are and how they can be configured in Xcode.

How to avoid a big refactor with the @_exported attribute

A practical use case of the @_exported underscore attribute to avoid a big refactor.

Managing multiple versions of Swift locally

A guide on how to download, install and manage different versions of Swift.

Platform specific code in Swift Packages

A set of examples showing how useful compiler directives can become when building cross-platform Swift programs.

From NSRegularExpression to SwiftRegex

An example of the new SwiftRegex API by refactoring code using NSRegularExpression using the new RegexBuilder framework.

Localising a modularised application

A few tips that work for me when I need to localise a modular application.

Custom key decoding strategies in Swift

How to take advantage of the custom key decoding strategies to avoid unnecessary CodingKeys implementations

Using Property Wrappers to avoid code repetition

Exploring how Property Wrappers can come in handy to avoid code repetition

Hiding implementation details using the adapter pattern in Swift

How to hide implementation details using the adapter pattern and decoupling multiple layers of an application, making it easy to test and adapt.