A Swift UICollectionView layout for creating tag-like interfaces with left, center, or right alignment.
TagCellLayout is a Swift library that provides a custom UICollectionView layout for creating tag-based interfaces in iOS applications. It automates the positioning and alignment of tags, supporting left, center, or right alignment and multi-line arrangements. The project solves the problem of manually calculating tag layouts, saving developers time and reducing code complexity.
iOS developers building apps that require tag-like interfaces, such as filters, categories, or labels, using UICollectionView.
Developers choose TagCellLayout because it handles all layout logic internally, offers flexible alignment options, and integrates easily with existing UICollectionView workflows. Its delegate-based design ensures customization while maintaining simplicity.
Made in Swift - Tag layout for UICollectionView supporting 3 types of alignments - Left || Centre || Right
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports left, center, and right alignment for tag layouts, as shown in the README screenshots, allowing developers to easily match design requirements.
Handles the arrangement of tags across multiple lines based on available width, simplifying dynamic tag interfaces without manual calculations, as highlighted in the key features.
Uses a delegate method to determine the size of each tag dynamically, enabling fine-grained control over tag appearance while abstracting layout logic, per the architecture section.
Works with standard UICollectionView components and data sources, as demonstrated in the usage example, making it easy to adopt in existing iOS projects.
The README lists branches for Swift 2.2 to 4.0 with no mention of Swift 5 or later, which may require developers to handle compatibility issues or fork the project for modern use.
Only supports CocoaPods for installation, lacking modern options like Swift Package Manager, which could hinder integration in projects using other dependency managers.
Provides only basic usage and a single delegate method, with no examples of advanced features like animations or performance optimization, leaving developers to figure out edge cases on their own.