Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Screen jumps #16

Open
grosch opened this issue Sep 5, 2015 · 0 comments
Open

Screen jumps #16

grosch opened this issue Sep 5, 2015 · 0 comments

Comments

@grosch
Copy link

grosch commented Sep 5, 2015

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)
}

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant