RepositorySwiftFRPháp
SN

sncf-connect-tech/Collor

A declarative-ui framework for UICollectionView with great and useful features.

184sao
20fork
0issue
0lượt xem

🧱 Collor - Framework MVVM cho UICollectionView siêu nhẹ

Không IndexPath, không register cell, chỉ cần mô tả và Collor lo toàn bộ.

Collor là một framework MVVM data-oriented giúp tăng tốc và đơn giản hóa việc xây dựng UICollectionView. Được phát triển bởi nhóm kỹ thuật của SNCF Connect (Voyages-sncf.com), Collor tập trung vào kiến trúc rõ ràng, tái sử dụng cell hiệu quả và cập nhật dữ liệu mượt mà nhờ diffing.

✨ Điểm nổi bật

  • Never IndexPath: Không bao giờ dùng IndexPath, tránh lỗi phức tạp khi quản lý vị trí.
  • Never register cell: Tự động đăng ký cell từ descriptor, giảm boilerplate.
  • Diffing data/section(s): Hỗ trợ diffing toàn bộ dữ liệu hoặc từng section, xử lý inserts/deletes/moves/updates.
  • Protocol & Struct oriented: Kiến trúc dựa trên protocol và struct, dễ mở rộng và test.
  • Decoration & Supplementary views: Quản lý decoration views và supplementary views qua handler tùy biến.
  • Custom layout dễ dàng: Cung cấp công cụ giúp xây dựng custom layout nhanh chóng.
  • Well tested: Được kiểm thử kỹ lưỡng, đảm bảo độ ổn định.
  • Swift 4: Hỗ trợ Swift 4 (dùng phiên bản 1.0.x cho Swift 3).

💡 Vì sao đáng chú ý

Collor khác biệt ở chỗ không yêu cầu developer quản lý IndexPath hay đăng ký cell thủ công. Mọi thứ đều thông qua cellDescriptor và adapter (viewModel), giúu model và UI tách rời rõ rệt. Đặc biệt, cơ chế diffing mạnh mẽ cho phép cập nhật giao diện một cách mượt mà mà không cần reload toàn bộ collectionView.

Phù hợp với các dự án iOS cần xây dựng giao diện danh sách/phân trang phức tạp, đặc biệt khi dữ liệu thay đổi thường xuyên. Collor giúp giảm đáng kể thời gian phát triển và duy trì code sạch.


#iOS #Swift #UICollectionView #MVVM #Diffing #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
KelvinJin/AnimatedCollectionViewLayout

A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.

4.9k
Sep 20, 2020
RepositorySwift
kudoleh/iOS-Clean-Architecture-MVVM

Template iOS app using Clean Architecture and MVVM. Includes DIContainer, FlowCoordinator, DTO, Response Caching and one of the views in SwiftUI

4.4k
Oct 11, 2026
RepositorySwift
shoheiyokoyama/Gemini

Gemini is rich scroll based animation framework for iOS, written in Swift.

3.3k
Jun 28, 2025
RepositoryObjective-C
Instagram/IGListKit

A data-driven UICollectionView framework for building fast and flexible lists.

13.1k
Nov 19, 2026
RepositoryKotlin
tanujnotes/Olauncher

Minimal AF Launcher for Android. Reduce your screen time. Daily wallpapers.

4.0k
Nov 26, 2026
RepositoryKotlin
hegaojian/JetpackMvvm

:chicken::basketball:JetpackMvvm 是一个基于 Jetpack 架构组件构建的 Android MVVM 快速开发框架,旨在帮助开发者快速搭建高质量、可维护、可扩展的应用。

3.6k
Dec 29, 2025
RepositoryDart
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

181.5k
Nov 28, 2026
RepositoryC++
react/react-native

A framework for building native applications using React

127.0k
Nov 27, 2026
RepositorySwift
vsouza/awesome-ios

A curated list of awesome iOS ecosystem, including Objective-C and Swift Projects

54.1k
Aug 27, 2026