iOS


Collection View Outlines in iOS 14

In an earlier article, I introduced collection view lists, new in iOS 14, which allow a collection view, or a section of a collection view, to imitate a table view. Collection view lists are the basis for yet another new iOS 14 feature: outlines. As Lovely as a Tree An outline is a way of …

Collection View Outlines in iOS 14 Read More »


Collection View Lists in iOS 14, Part 2

In an earlier article, I introduced collection view lists, a new feature of iOS 14. I showed how you can easily make a collection view that looks pretty much just like a table view. Now I’d like to talk about some additional table view appearances and behaviors and how collection view lists implement them. List …

Collection View Lists in iOS 14, Part 2 Read More »


Collection View Lists in iOS 14

One of the most significant innovations in iOS 14 is that a collection view can be configured to look and behave like a table view. A collection view of that kind is called a collection view list. A collection view list isn’t a matter of mere layout. Laying out a collection view as a single …

Collection View Lists in iOS 14 Read More »


Collection View Content Configuration in iOS 14

In a series of earlier articles, I introduced the iOS 14 cell content configuration architecture. My examples consisted entirely of table view cells, but I was careful to point out that exactly the same thing applies to collection view cells because UICollectionViewCell has contentConfiguration and backgroundConfiguration properties, just like UITableViewCell. A collection view cell, unlike …

Collection View Content Configuration in iOS 14 Read More »


Rant: Swift, Cocoa, Target–Action, and Instance Property Initialization

As someone who spends a lot of time hanging out on Stack Overflow, I get to see first hand what traps iOS Cocoa programmers fall into. In fact, that’s why I spend a lot of time hanging out on Stack Overflow. It’s fun and instructive. But it also pains me to see people making the …

Rant: Swift, Cocoa, Target–Action, and Instance Property Initialization Read More »


Tricks for Testing External Links

On iOS, there is no deep mechanism for interapplication communication such as macOS provides through Apple events. Your app is sandboxed; other apps cannot drive it. There is, however, a simple and safe mechanism for letting another app send small messages to your app, namely through external links. We are all familiar with links. Suppose …

Tricks for Testing External Links Read More »


The Developer’s Guide to Cell Background Configuration in iOS 14

In an earlier article, I introduced iOS 14’s new content configuration architecture. As I showed in that article, this architecture is useful particularly in a cell, meaning a UITableViewCell or a UICollectionViewCell: A cell has a contentConfiguration property; whatever content view the cell’s content configuration creates, the cell makes that its own contentView, automatically. To …

The Developer’s Guide to Cell Background Configuration in iOS 14 Read More »


The Developer’s Guide to User-Interactive Cell Configurations in iOS 14

In an earlier article, I introduced iOS 14’s new content configuration architecture. You have a UIContentConfiguration object and a UIContentView, and they go together. Configuring the content configuration object expresses the data you want represented; the configuration object then generates the content view, which constructs the interface that displays that data. A UITableViewCell or a …

The Developer’s Guide to User-Interactive Cell Configurations in iOS 14 Read More »


      Sign Up

      Get more articles and exclusive content that takes your iOS skills to the next level.