Skip to content

1.0.2

Choose a tag to compare

@euwars euwars released this 12 Jun 18:40
· 12 commits to main since this release

CompatReorderable 1.0.2

Drag-to-reorder for any SwiftUI container, mirroring the native reorderable() / reorderContainer(for:move:) API from the 2027 OS releases.

Highlights

  • System drag-and-drop backend on iOS 17+ / visionOS: native lift, drop and cancel animations, context-menu coexistence, second-finger scroll, edge auto-scroll
  • SwiftUI gesture backend on watchOS 10+ and macOS 14+ (immediate click-drag on Mac, long-press on watch), with the dragged item rendered in a container-level overlay
  • Data is never mutated during the drag; one move callback on drop, difference.apply(to:) included
  • Generic over your item's ID — validated with 500-item containers

Changes since 1.0.1

  • Fixed the fallback-backend preview rendering under other cells in lazy containers
  • isEnabled now gates the fallback backend
  • Slower, calmer fallback animations (0.3s lift, 0.5s gap/settle)