Skip to content

Add PlaceholderRepresentable protocol for skeleton loading#10

Merged
anthony1810 merged 2 commits intomainfrom
develop
Feb 2, 2026
Merged

Add PlaceholderRepresentable protocol for skeleton loading#10
anthony1810 merged 2 commits intomainfrom
develop

Conversation

@anthony1810
Copy link
Owner

Summary

  • Add PlaceholderRepresentable protocol for types that support placeholder data for skeleton loading effects
  • Enables skeleton loading with .redacted() and .shimmering() across projects

Changes

  • New Protocols/PlaceholderRepresentable.swift with placeholder and isPlaceholder requirements

Version

Tagged as 1.0.2

- Replace FeatureViewState with LoadmoreScreenState base class
- Use closure-based updateState API instead of tryUpdate
- Reference canShowLoadmore from LoadmoreScreenState
- Add items.isEmpty check for load more indicator
Provides a standard protocol for types that support placeholder data,
enabling skeleton loading effects with .redacted() and .shimmering().
@anthony1810 anthony1810 merged commit d95ee89 into main Feb 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant