Post

Replies

Boosts

Views

Activity

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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
Reply to iPad keyboard navigation: where to initialize UIFocusHaloEffect
I believe the best place to implement it is in the init of the cell class. Example: class GenericCell: UICollectionViewCell {     static let reuseIdentifier = "my-cell"     override var canBecomeFocused: Bool { true }     override init(frame: CGRect) {         super.init(frame: frame)         focusEffect = UIFocusHaloEffect() ...     } ... }
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21
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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’21