Swift Closures Field Notes

A cheat sheet of Swift closure snippets and examples I've collected over time to help get syntax and usage right the first time.

16 days ago   •   6 min read
Swift

Creating an iOS bar chart in code using Swift

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.

22 days ago   •   10 min read
UIKit

Swift String Field Notes

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

a month ago   •   3 min read
Swift

Swift Dictionary Field Notes

A cheat sheet of snippets and examples I've collected over time of using Apple's Foundation Dictionary class.

a month ago   •   4 min read
Swift

Using DispatchGroup in SwiftUI to coordinate UI updates

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.

a month ago   •   8 min read
Swift

Swift high-order reduce usage with custom types

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.

a month ago   •   5 min read
Swift