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 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
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 …
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 …
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 »
The Developer’s Guide to List Content Views 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. As I showed in …
The Developer’s Guide to List Content Views in iOS 14 Read More »
The Developer’s Guide to Cell Content Configuration in iOS 14
Have you ever written table view code like this? override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: cellID, for: indexPath) let label = // … label.text = “Hello, world” return cell } Looks simple and innocent enough, but there’s something very wrong with it, philosophically speaking. This is …
The Developer’s Guide to Cell Content Configuration in iOS 14 Read More »