Post

Replies

Boosts

Views

Activity

Reply to Modern UICollectionView: Best approach for static first cell?
Figured it out. My main mistake was using objects and not identifiers in UICollectionViewDiffableDataSource. When it's using identifiers, the data has to be prepared in CellRegistration. With an indexPath coming in, it's easy to remap what you're retrieving from FRC. Now that I've solved the problem, I've decided against the design pattern of static first cell on account that it goes out of sight for users browsing the collectionView. When the Add button is placed in UINavigationBar or the toolbar, however, it's always in sight.
Aug ’21
Reply to iOS 15 Gap between navigation bar and table view
From WWDC21, session: “What's new in UIKit“ (I'm pasting from the transcript) We have a new appearance for headers in iOS 15. For plain lists, section headers now display seamlessly in line with the content, and only display a visible background material when becoming pinned to the top as you scroll down. In addition, there's new padding inserted above each section header to visually separate the sections with this new design.
Aug ’21