dev-liyang/LYEmptyView
iOS一行代码集成空白页面占位图(无数据、无网络占位图) emptyView-empty set observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3185
- days_rel: n/a
- days_push: 2434
- n_releases_24m: 0
Adoption not part of the score
1557 stars · 277 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
LYEmptyView is an iOS library that adds empty-state placeholder views (no data, no network) to UITableView/UICollectionView with a single line of code. It uses categories and runtime method swizzling to automatically show or hide the placeholder based on the data source.
Use cases
- show a no-data placeholder when a table view is empty
- display a no-network empty state in a collection view
- add retry button to empty state view
- integrate empty view without delegates or protocols
- customize empty state image, title, and detail text
- auto-hide empty placeholder when data loads
When to choose
- you build iOS apps in Objective-C or Swift with UIKit table/collection views
- you want zero-coupling, one-line empty state integration
- you need automatic show/hide tied to reloadData, insert, and delete calls
When to avoid
- you use SwiftUI and need native empty states
- you need Auto Layout support for fully custom empty views
- the project is no longer actively maintained and you need ongoing updates
Facets
library · maturity maintenance
ui-components developer-tools mobile-development frontend empty-state placeholder-view uitableview uicollectionview objective-c cocoapods one-line-integration ios mobile
1 source
- readme: https://github.com/dev-liyang/LYEmptyView · fetched 2026-08-28 · 3702b03f7f08
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dev-liyang/LYEmptyView | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="dev-liyang/LYEmptyView")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem