This post walks through the process to upgrade a set of nested API calls from the familiar closure syntax to the new and improved Swift async/await syntax.
Posts related to development using the Swift programming language
A cheat sheet of Swift closure snippets and examples I've collected over time to help get syntax and usage right the first time.
Displaying data in a chart is a common task in an iOS application. In this tutorial I'll demonstrate how to use Swift to create a resizable, dynamic bar chart composed of UIView elements with Auto Layout constraints entirely in code.
A cheat sheet of snippets and examples I've collected over time of using Apple's String class and related string processing and string manipulation techniques
In a perfect world every network request will succeed on the first try. But in the real-world, not every API request succeeds. This post covers a technique to build automatic retries into an iOS or macOS client application.
A cheat sheet of snippets and examples I've collected over time of using Apple's Foundation Dictionary class.
This post covers how to use the Grand Central Dispatch's DispatchGroup object to coordinate separate web requests so that UI updates can be completed at the same time, even when asynchronous requests aren't guaranteed to return in a predictable order.
Swift's .reduce provides a powerful high-order function to perform analysis of sequences and collections. This post is a cheat sheet for using .reduce to perform various kinds of numerical analysis.
This post is a cheat sheet for various uses of the Swift high-order map, flatMap and compactMap used with custom Types.
While sorting simple types are covered well in Apple's documentation on the subject and in many other places, I've focused below on sorting custom object types
This quick post summarizes the steps to implement sending email from Swift. As an added twist, this post includes capturing an image from one of the app's UIViews.
This techique illustrates a mid-level technique: impelmenting custom Core Graphics drawing in a UIView.