ra1028 / RAReorderableLayout

A UICollectionView layout whitch can move item with drag and drop.
MIT License
867 stars 140 forks source link

Screen jumps #16

Open grosch opened 9 years ago

grosch commented 9 years ago

When I do my long press, the entire screen "jumps" and then everything works like normal. It's very jarring visually. I only implemented two of your methods so far:

// MARK: - RAReorderableLayoutDataSource extension HomeScreenViewController: RAReorderableLayoutDataSource { func collectionView(collectionView: UICollectionView, reorderingItemAlphaInSection section: Int) -> CGFloat { return 0.3 } }

// MARK: - RAReorderableLayoutDelegate extension HomeScreenViewController: RAReorderableLayoutDelegate { func collectionView(collectionView: UICollectionView, atIndexPath: NSIndexPath, didMoveToIndexPath toIndexPath: NSIndexPath) { let item = collectionData.removeAtIndex(atIndexPath.item)

    collectionData.insert(item, atIndex: toIndexPath.item)
}

}