RepositorySwiftCNTrung Quốc
MQ

MQZHot/ZCycleView

使用UICollectionView实现常见图片无限轮播,支持自定义cell,自定义pageControl,以及轮播样式

438sao
69fork
20issue
1lượt xem

🔁 ZCycleView: Banner ảnh vô lãnh vô hạn tùy biến bằng UICollectionView

Dựa trên UICollectionViewFlowLayout, hỗ trợ custom cell, custom pageControl và nhiều kiểu trượt khác nhau.

ZCycleView là một thư viện Swift nhẹ, giúp bạn nhanh chóng triển khai banner ảnh vô lãnh vô hạn trong ứng dụng iOS. Dựa trên UICollectionView, thư viện hỗ trợ tùy biến hoàn toàn về giao diện cell, pageControl cũng như cách thức cuộn ảnh.

✨ Điểm nổi bật

  • Hỗ trợ Swift 5+ và iOS 9+: Tương thích với hầu hết các dự án iOS hiện nay.
  • Vô lãnh vô hạn: Sử dụng UICollectionView để tạo trải nghiệm cuộn liên tục mượt mà.
  • Tùy biến Cell: Cho phép đăng ký và cấu hình cell tùy theo nhu cầu.
  • Tùy biến PageControl: Hỗ trợ thiết lập pageControl riêng cho từng banner.
  • Cấu hình linh hoạt: Thiết lập kích thước item, khoảng cách, vị trí ban đầu dễ dàng.
  • Delegate chi tiết: Cung cấp các phương thức gọi lại rõ ràng cho tương tác người dùng.

💡 Vì sao đáng chú ý

Khác với các giải pháp carousel thông thường, ZCycleView chủ trường sử dụng UICollectionView — nền tảng mạnh mẽ và quen thuộc với các nhà phát triển iOS — để xây dựng logic vô lãnh. Nhờ đó, bạn có thể dễ dàng mở rộng tính năng hoặc tích hợp thêm các hiệu ứng phức tạp. Thích hợp cho các ứng dụng cần banner quảng cáo, giới thiệu sản phẩm hoặc nội dung truyện tranh.


#Swift #UICollectionView #BannerView #InfiniteScroll #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositorySwift
WenchaoD/FSPagerView

FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders.

7.4k
Jan 2, 2025
RepositorySwift
BenEmdon/CenteredCollectionView

A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift

1.5k
Nov 22, 2026
RepositorySwift
mischa-hildebrand/AlignedCollectionViewFlowLayout

A collection view layout that gives you control over the horizontal and vertical alignment of the cells.

1.4k
Mar 14, 2025
RepositorySwift
eleev/uicollectionview-layouts-kit

📐Custom layouts for UICollectionView with examples [iOS 12+].

812
May 7, 2023
RepositorySwift
iwheelbuy/SquareMosaicLayout

An extandable mosaic UICollectionViewLayout with a focus on extremely flexible customizations :large_orange_diamond:

264
Mar 21, 2019
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositorySwift
iina/iina

The modern video player for macOS.

47.4k
Dec 1, 2026
RepositorySwift
Alamofire/Alamofire

Elegant HTTP Networking in Swift

42.4k
Nov 27, 2026
RepositorySwift
permissionlesstech/bitchat

bluetooth mesh chat, IRC vibes

37.2k
Nov 27, 2026