Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replicate SpringBoard behavior #50

Open
seboslaw opened this issue Feb 22, 2012 · 2 comments
Open

Replicate SpringBoard behavior #50

seboslaw opened this issue Feb 22, 2012 · 2 comments

Comments

@seboslaw
Copy link

Hey,

first up kudos for the library. It rocks!

I'd like to replicate the SpringBoard behavior in the following way:

  • In "normal" mode I am not able to move or delete cells
  • When touching and holding a cell for x secs the grid view switches to "editing" mode (all cells wiggling), where I am able to move AND/OR delete cells (the delete button shows for all cells). Of course I would need an Edit/Done button in the navigation bar to finish the editing mode.

Is it possible to produce this behavior with the current code? If not, I'll dig in :)

@bhochberg
Copy link

I'm looking for the exact same thing! I would like to utilize GMGridView, but I need the Springboard paradigm, which unfortunately is not currently supported.

The code currently equates editing with deletion instead of reordering (sorting). This is very limiting, and as you mention, not at all springboard-like. Apple's paradigm is that shaking = movable, and has nothing to do with deletion.

I would love to see the following enhancements:

  • setEditing turns on sorting and deletion (perhaps this is customizable as an and/or)
  • have the longPressGesture recognizer turn on editing (and have an option for it to not do anything as well)
  • Have a canSortItemAtIndex delegate call to disable sorting of specific cells. (YES = shake and allow movement, NO = don't shake and can't move)
  • Make canDeleteItemAtIndex only affect the presence of the delete icon and functionality (and leave shaking out of things).

@gmoledina
Copy link
Owner

Thanks @seboslaw.

Yeah, the springboard behaviour is not replicable with the current codebase.
There's probably a way to do it easily. I'll think of it when I can. Feel free to pull-request if you get around to implement it.

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

No branches or pull requests

3 participants