{"repo":"zekunyan/TTGTagCollectionView","free":true,"listed":false,"github":"https://github.com/zekunyan/TTGTagCollectionView","clone":"git clone https://github.com/zekunyan/TTGTagCollectionView.git","description":"Useful for showing text or custom view tags in a vertical or horizontal scrollable view and support Autolayout at the same time. It is highly customizable that most features of the text tag can be configured. 标签流显示控件，同时支持文字或自定义View","language":"Swift","stars":1900,"topics":["ios","tags","ui","objective-c","layout-engine","swift","swift5","swiftui"],"license":"MIT","category":"mobile-apps","readme_excerpt":"TTGTagCollectionView 中文文档 - TTGTagCollectionView is a Swift-first iOS tag layout component. Use it for filter chips, topic labels, search facets, dense table cells, custom tag views, and any UI that needs predictable wrapping or horizontal tag rows. Highlights - Text tags or custom views : TextTagCollectionView for styled text, TagCollectionView for arbitrary UIView content. - Flexible layout : vertical wrapping, horizontal scrolling, line limits, spacing, insets, and 6 alignment modes. - Per-tag appearance : gradient backgrounds, borders, shadows, corner radius, padding, size constraints, and selected states. - AutoLayout friendly : intrinsic size updates and preferredMaxLayoutWidth for stack views, forms, and self-sizing cells. - Cache-aware performance : text measurement cache, pure layout cache, and precomputed content-size APIs for dense lists. - Swift and Objective-C : modern Swift sources with Objective-C-compatible names and selectors. Requirements - iOS 16.0+ - Swift 5.9+ - Xcode 15+ Installation Swift Package Manager In Xcode, choose File - Add Package Dependencies and enter: Or add it to Package.swift : CocoaPods Quick Start The screenshots below are generated from the Swift example app running in an iOS Simulator. 1. Create the view 2. Build content plus style Each TextTag is built from content and style. The same model also carries selection state, accessibility metadata, and optional attachment data. 3. Add selected states selectedStyle is applied automatically ","default_branch":null,"files":null,"tree":[],"storefront":"/r/zekunyan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zekunyan/TTGTagCollectionView/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}