Swift Closures Field Notes
Feb 9, 2021, 10:48 AM
A cheat sheet of Swift closure snippets and examples I've collected over time to help get syntax and usage right the first time.
A visual reference to SwiftUI DatePicker styling for iOS and macOS
Feb 8, 2021, 2:03 PM
SwiftUI's date picker provides a wide range of visual selection functionality and style choices. This post provides a visual reference to the actual UI appearance created by various picker configurations.
Creating an iOS bar chart in code using Swift
Feb 3, 2021, 9:32 AM
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
Jan 30, 2021, 9:27 PM
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
Using automatic API request retries make iOS apps more resilient
Jan 29, 2021, 11:53 AM
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.
Swift Dictionary Field Notes
Jan 28, 2021, 11:18 AM
A cheat sheet of snippets and examples I've collected over time of using Apple's Foundation Dictionary class.
Using DispatchGroup in SwiftUI to coordinate UI updates
Jan 21, 2021, 2:06 AM
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...
Swift high-order reduce usage with custom types
Jan 20, 2021, 5:49 PM
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.
Swift high-order map usage with custom types
Jan 20, 2021, 4:18 PM
This post is a cheat sheet for various uses of the Swift high-order map, flatMap and compactMap used with custom Types.
Sorting collections of custom types using higher order functions in Swift
Jan 20, 2021, 1:57 PM
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
Capture a UIView as a a JPEG image using Swift
Jan 3, 2021, 8:29 PM
This technique demonstrates the simple but useful task of capturing the contents of a UIView as a JPEG image data object.
Sending Email with Image Attachments in Swift
Jan 3, 2021, 8:28 PM
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.
Drawing with Core Graphics using Swift
Jan 3, 2021, 4:56 PM
This techique illustrates a mid-level technique: impelmenting custom Core Graphics drawing in a UIView.
iOS Image Caching for UIKit Apps
Dec 28, 2020, 9:00 AM
In this article I'll cover a simple and straightforward approach to fetching images from remote web servers and efficiently caching them so they aren't retrieved more frequently than necessary.
Elements of a Successful Mobile App Engagement Framework
Feb 3, 2020, 10:37 PM
This article presents three separate techniques app developers can use to leverage the capabilties of mobile device operating systems to build more engaging experiences for app users.
Configure Xcode Server to send SMTP Email
Nov 24, 2018, 10:54 PM
In this post, I’ll discuss how to configure a MacOS Xcode Server machine to route email messages to the development team via an external SMTP server.
CI/CD with Xcode Server 10
Nov 20, 2018, 9:36 PM
In this article, I’ll overview the product architecture and discuss some of the plus and minus factors for using Xcode server vs. 3rd-party alternatives.
Making Mobile Apps Smarter with Machine Learning
Nov 13, 2018, 10:43 PM
What is Machine Learning, and why is it now coming to mobile computing platforms?
Nov 10, 2018, 9:51 PM
Using the WebKit/WKWebView techniques presented here, your native apps can be better integrated with web content and provide a superior experience to end-users.