Using iOS Diffable Data Sources with Different Object Types
Jan 11, 2021, 10:11 AM
Since iOS 13, we’ve been able to revamp the way our table and collection views work by using diffable data source classes (UITableViewDiffableDataSource and UICollectionViewDiffableDataSource respectively) and snapshots. This...
New UIDatePicker Styles in iOS 14
Nov 24, 2020, 10:09 AM
One of the nice new features that came out with iOS 14 were some new options around the venerable UIDatePicker. There are now some choices other than just the slot machine-style wheels! Since iOS 2.0, the original style of UIDatePicker has...
Identify Supported Images and Create Collections in SF Symbols 2
Oct 13, 2020, 10:54 AM
If you’ve been doing any sort of app development with iconography since iOS 13 came out, there’s a good chance you leveraged the original SF Symbols app. With around 1,600 scalable, vector-based symbols integrating with the...
Better Uniform Type Identifiers with Xcode 12
Sep 29, 2020, 2:51 PM
If you’ve been doing any kind of file uploads, downloads, previews, and such in past versions of Xcode and needed to deal with MIME types or file extensions, you’ve probably had to deal with Uniform Type Identifers. Using...
Manage Developer Disk Space Easily with macOS Big Sur
Sep 27, 2020, 5:52 PM
Prior to macOS 11 Big Sur, cleaning up development disk space by deleting old iOS or watchOS device support versions and Xcode caches was something of a pain, requiring command-line calls to directories scattered in a number of different...
Using Comparable with Enumerations in Swift 5.3
Jun 30, 2020, 8:16 PM
As expected, there was so much goodness in WWDC 2020 last week. From exciting new software changes in Swift UI, collection views, and much more to the anticipated move away from Intel to Apple Silicon, there was something exciting for just...
Cleaning Up Swift Enumeration Evaluation
Jun 16, 2020, 7:15 PM
Just some quick and simple Swift stuff in this post around writing cleaner code. It’s pretty common to see a pattern like the following in existing code when evaluating enumerations. While the above code works, it’s also not...
Use the new Xcode 11 Distribution Certificate Format
Apr 27, 2020, 11:31 AM
If you’ve ever distributed an app to the Apple App Store, you’ve probably generated an iOS Distribution certificate (either from Xcode or directly from the Apple Developer site. With Xcode 11, Apple released new Development and...
Nicely Formatted Lists with ListFormatter
Mar 29, 2020, 5:02 PM
Last time we took a look at the very useful RelativeDateTimeFormatter to create localized strings describing date differences programmatically. In this post we’ll look at a better way to handle presenting lists to your users. As...
Formatting Relative Dates the Easy Way
Feb 26, 2020, 4:39 PM
Prior to iOS 13, converting a date from the Date object to a nicely formatted string such as “10 days ago” or “next month” required a lot of custom coding or maybe third-party libraries to manage the conversion. The...
Using UITabBarAppearance for Tab Bar changes in iOS 13
Dec 31, 2019, 9:02 AM
With iOS 13, Apple finally made some long overdue changes to support more effective customizations of the tab bars, and tool bars in your apps. The new UITabBarAppearance, UIBarAppearance, and related classes lets developers easily modify...