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

Drop to upper position #1

Open
dobleperez opened this issue Mar 26, 2020 · 5 comments
Open

Drop to upper position #1

dobleperez opened this issue Mar 26, 2020 · 5 comments

Comments

@dobleperez
Copy link

dobleperez commented Mar 26, 2020

Hello,
I was search how to reorder a list on SwiftUI using this technique and what a surprise find your code!
I was using your project only for reordering the list and I've found a couple issues:

  1. I notice that dropping to upper position, just one up, makes a row superposition. Two steps up works well
  2. On iPhone doesn't work the drag interaction

Thanks!

@V8tr
Copy link
Owner

V8tr commented Mar 26, 2020

Hi Javi! Thanks for heads up. I'll revisit my tutorial. It may be that the behavior has changed since the time it was written. Or maybe it's just a bug in my code.

As for the drag, I am not sure that there is a way of entering a split-screen mode on iPhone. I think it's more an iPad feature.

@Azat92
Copy link

Azat92 commented Apr 5, 2020

Hi @V8tr, I found a question on SO related to this issue

@V8tr
Copy link
Owner

V8tr commented Apr 6, 2020

I've run this code on iOS 13.4 with Xcode 11.4 and it worked fine. Am I missing something or maybe it was fixed on SwiftUI side?

simulator

@Azat92
Copy link

Azat92 commented Apr 6, 2020

can you notice that when you perform reorder UI jumps like a crazy? In my understanding this is the core issue. Example you can try to reorder over than one row and cell will stay exact at the place where you put it

@V8tr
Copy link
Owner

V8tr commented Apr 7, 2020

Yeah, I can see the problem now. Not sure if there is a fix with the current state of SwiftUI.

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

No branches or pull requests

3 participants