FranceHamzaGhazouani/HGPlaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tháng
#1 Repository Của Tháng
#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,.halloweenvà 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.
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Placeholder views based on content, loading, error or empty states
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries.
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
Protocol to handle initial Loadings, Empty Views and Error Handling in a ViewController & views
🎄 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.