jessesquires / jessesquires/ReactiveCollectionsKit

Support empty sections (headers/footers only) + Empty Section View?

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Swift
Stars
194
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Currently, sections that are empty (no cells) are removed. Should we support allowing empty sections to stay in the collection? The use case would be showing a header/footer view. This is arguably not good UI/UX. Up for debate.

----

We support providing an "Empty View" to display for the entire collection when it is empty. (e.g.,`ContentUnavailableView`)

It might be cool to offer this on a per-section basis.

Implementation will be very different than for the whole collection.

We'll need to use a `CellViewModel` as a placeholder to keep the section in the collection. Then pretend it's empty, when it only has the placeholder "empty state" cell.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.