Observing ViewModel Changes in SwiftUI

This post presents three approaches to signaling changes to the SwiftUI that I’ve found useful in various scenarios: @Published variable binding, .onChanged() events and NotificationCenter messages.

What's SwiftUI and Should I use it?

SwiftUI is Apple's new development language and paradigm for building applications for its desktop and mobile platforms. In this article I'll discuss at a high level what SwiftUI is and how businesses and developers should think about its adoption in their development planning process.

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.

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.

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

Copyright © 2021 Rob Kerr