What problem does it solve?
This Skill automates the creation of production-ready pagination infrastructure for SwiftUI apps, eliminating manual, error-prone wiring for infinite scroll, load-more buttons, and paginated search results.
Core Features & Use Cases
- Offset and cursor support: scaffolds unified PageRequest, OffsetPaginatedResponse, and CursorPaginatedResponse models for REST APIs.
- Stateful managers and adapters: generates PaginationManager with a clear state machine, prefetch thresholding, cancellation-safe concurrency, and a SearchablePaginationManager adapter for debounced queries.
- SwiftUI integration and UX: provides PaginatedList, LoadMoreButton, error and skeleton views, and example test cases so teams can quickly add robust paginated lists to user interfaces.
- Use Case: Add infinite scrolling with search to a Users list backed by a cursor-based API while preserving existing items on errors and handling retries.
Quick Start
Generate pagination scaffolding for your SwiftUI app including PaginationManager, PaginatedDataSource, and PaginatedList views.