# liangdahong/BMLongPressDragCellCollectionView

🎉 🎉 🎉 🎉 🎉  让你轻松实现类似支付宝的拖拽重排功能, 支持各种自定义操作。

Repository: https://github.com/liangdahong/BMLongPressDragCellCollectionView
Canonical: https://ross.abutalabs.com/products/bmlongpressdragcellcollectionview
Language: Objective-C
License: MIT
License Family: permissive
Topics: uicollectionview, uicollectionviewcell, drag, rearrangement, objective-c, arrangement
Last push: 2021-05-25T16:39:30+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3712, "days_push": 1926, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1182, forks 159 (observed 2026-08-28T04:03:54.338121+00:00)

## What it is
An Objective-C iOS library that subclasses UICollectionView to add long-press drag-and-drop cell rearrangement, similar to Alipay's icon reordering. It supports iOS 8+, Xib/Storyboard, and customizable drag behaviors via drop-in data source and delegate protocols.

## Use cases
- reorder grid items with long press drag like Alipay
- drag to rearrange cells in a UICollectionView
- implement drag-and-drop sorting for iOS collection views
- customize drag rearrangement animations and behavior
- let users rearrange app home screen tiles

## When to choose
- building an iOS app in Objective-C or Swift needing drag-to-reorder collection view cells
- wanting Alipay-style long-press drag reordering with minimal setup
- needing Xib/Storyboard compatibility with a drop-in UICollectionView subclass

## When to avoid
- building for platforms other than iOS
- needing drag reordering in SwiftUI or modern native UICollectionView drag APIs
- requiring a library under active development with recent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: mobile-development, frontend
- platform: -
- tags: uicollectionview, drag-and-drop, objective-c, cocoapods, rearrangement, ios, mobile

## Member repositories
- liangdahong/BMLongPressDragCellCollectionView (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.338121+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:24:50.758046+00:00, confidence not recorded.
  - readme: https://github.com/liangdahong/BMLongPressDragCellCollectionView (fetched 2026-08-28T04:03:54.338121+00:00, sha 5856654e1749)
- Data as of 2026-08-30T08:39:29.467469+00:00.
