# dev-liyang/LYEmptyView

iOS一行代码集成空白页面占位图(无数据、无网络占位图) emptyView-empty set

Repository: https://github.com/dev-liyang/LYEmptyView
Canonical: https://ross.abutalabs.com/products/lyemptyview
Language: Objective-C
License: MIT
License Family: permissive
Last push: 2020-01-03T21:18:27+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3185, "days_push": 2434, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1557, forks 277 (observed 2026-08-28T04:05:03.380526+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, frontend
- platform: -
- tags: empty-state, placeholder-view, uitableview, uicollectionview, objective-c, cocoapods, one-line-integration, ios, mobile

## Member repositories
- dev-liyang/LYEmptyView (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.380526+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:29:56.534329+00:00, confidence not recorded.
  - readme: https://github.com/dev-liyang/LYEmptyView (fetched 2026-08-28T04:05:03.380526+00:00, sha 3702b03f7f08)
- Data as of 2026-08-30T08:39:29.467469+00:00.
