RepositorySwiftFRFrance
HA

HamzaGhazouani/HGPlaceholders

Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project

2.2kstars
158forks
21issues
1views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: empty

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: empty-state

#1 Repository Của Tháng

2
TINIX TRENDING·Chủ đề: placeholder

#2 Repository Của Tháng

🎯 HGPlaceholders - Thư viện Swift thông minh cho placeholder & empty state

Thêm placeholder đẹp cho UITableView/UICollectionView chỉ trong 1 dòng code, không cần viết giao diện.

HGPlaceholders là một thư viện Swift nhẹ cho phép bạn dễ dàng thêm các trạng thái placeholder (loading, no results, error, no connection) vào bất kỳ UITableView hay UICollectionView nào trong dự án. Thư viện cung cấp nhiều theme mặc định đẹp mắt và hỗ trợ tùy biến hoàn toàn nếu bạn muốn thiết kế riêng.

✨ Điểm nổi bật

  • Kế thừa từ TableView/CollectionView: Chỉ cần kế thừa lớp, placeholder tự động hoạt động.
  • Bốn trạng thái mặc định: Loading, No Results, Error, No Connection — đều có hình ảnh và nút hành động.
  • Nhiều theme đẹp: Hỗ trợ .basic, .default, .default2, .halloween và cho phép tạo theme riêng.
  • Tùy biến hình ảnh: Thay đổi ảnh bằng cách đặt trong asset với tên hg_default-loading, hg_default-no_results, v.v.
  • Cài đặt toàn cục: Áp dụng theme mặc định cho toàn bộ TableView/CollectionView trong dự án.
  • Hỗ trợ CocoaPods & Carthage: Cài đặt nhanhan chóng qua cả hai công cụ quản lý gói.
  • Tự động động: Placeholder tự động chiếm toàn bộ frame của bảng và hỗ trợ một hành động người dùng.

💡 Vì sao đáng chú ý

Thư viện không yêu cầu bạn phải xây dựng giao diện placeholder phức tạp hay quản lý trạng thái hiển thị thủ công. Chỉ với vài dòng code, HGPlaceholders tự động xử lý việc hiển thị placeholder dựa trên trạng thái dữ liệu. Đặc biệt, khả năng tùy biến theme theo phong cách dự án (như ví dụ "summer") giúp bạn dễ dàng duy trì nhất quán thiết kế.


#Swift #iOS #Placeholder #EmptyState #UITableView #UICollectionView #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositorySwift
Juanpe/SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting

12.9k
Jun 23, 2026
RepositorySwift
aschuch/StatefulViewController

Placeholder views based on content, loading, error or empty states

2.1k
Nov 12, 2020
RepositorySwift
marcosgriselli/ViewAnimator

ViewAnimator brings your UI to life with just one line

7.3k
Mar 31, 2024
RepositorySwift
Yalantis/Persei

Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift

3.4k
Apr 22, 2020
RepositorySwift
kazuhiro4949/PagingKit

PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.

1.4k
Aug 8, 2022
RepositorySwift
youngsoft/TangramKit

TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView

1.2k
Aug 29, 2021
RepositorySwift
mariohahn/StatusProvider

Protocol to handle initial Loadings, Empty Views and Error Handling in a ViewController & views

862
Sep 14, 2018
RepositorySwift
dianqk/Flix

iOS reusable form library in Swift.

716
Jul 22, 2022
RepositorySwift
waizeiaifu/EmptyDataSet-Swift

🎄 DZNEmptyDataSet implement with Swift.A drop-in UITableView/UICollectionView superclass category for showing empty datasets whenever the view has no content to display. DZNEmptyDataSet with Swift.

707
May 24, 2022