Open grosch opened 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) }
}
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)
}