Dave Rahardja · @drahardja
1691 followers · 7243 posts · Server sfba.social

Trying to use `UICollectionView` with `NSDiffableDataSourceSectionSnapshot`: why are my `.disclosureIndicator()` not working automatically to expand/collapse hierarchical items? I’ve used the `.addItems(_, to:)` function on the section snapshot object to add child items to parent items, but the accessory seems to always be grayed out.

Funny thing is, I can manually expand the items, and I can see the child items there.

Help!

#ios #UIKit #uicollectionview

Last updated 1 year ago

Dave Rahardja · @drahardja
552 followers · 1974 posts · Server sfba.social

For a section that has orthogonal scrolling, but has too few items to span the width of the collection view (e.g. horizontal-scrolling section with 3 items but there is space for 5), is there a way to force rubberband-scrolling for that section regardless? The default behavior seems to be to disable scrolling for that section entirely.

#uicollectionview #compositionallayout #UIKit

Last updated 2 years ago

Dave Rahardja · @drahardja
551 followers · 1973 posts · Server sfba.social

Playing around with … is there a way to attach a background view to a layout *group*?

#uicollectionview #compositionallayout #UIKit

Last updated 2 years ago