SwiftUI Drag and Drop with Transferable Custom Object

SwiftUI Drag and Drop with Transferable Custom Object

Sean Allen

10 месяцев назад

18,283 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

isaac boothe
isaac boothe - 09.11.2023 06:56

Gold. Thank you!

Ответить
Chuck O'Rourke
Chuck O'Rourke - 08.11.2023 23:22

How much of the boilerplate of conforming to Transferable will Apple make go away in the next year or whatever.

Ответить
Артём Зайцев
Артём Зайцев - 23.10.2023 22:57

First of all, thanks for in-depth guide. Helped a lot to understand a topic.
I have a question thought: is there any way to tweak drag gesture parameters?
I have a huge delay, trying to drag an item, that is inside a ScrollView - would like to reduce it

Ответить
Cheesable
Cheesable - 19.10.2023 19:32

when I try to drag after adding draggable, the object kinda pops up but doesnt move. do you know what is the issue?

Ответить
Vladimir Kim
Vladimir Kim - 09.10.2023 14:19

Thank you very much!!!

Ответить
Andres P
Andres P - 04.10.2023 23:51

Awesome app

Ответить
iOS
iOS - 15.09.2023 00:49

@seanallen how can I detect which view is the one being dragged? perhaps for changing the color of the destination one.. .draggable doesn't offer any callbacks :(

Ответить
Chris Parker
Chris Parker - 06.09.2023 06:49

Great tutorial Sean. Drag and Drop has always been a bit of a mystery to me. Cheers man.

Ответить
The McGlone Code
The McGlone Code - 31.08.2023 05:43

Hey how would you make a HStack in a scroll view but the user can change the order of the items within? Can you use .draggable?

Ответить
soheil pakgohar
soheil pakgohar - 07.08.2023 15:07

My life is divided into 2 parts, before and after this tutorial

Ответить
Dmitry Golovin
Dmitry Golovin - 02.08.2023 21:46

Great video!

Ответить
Naeem Petiwala
Naeem Petiwala - 26.07.2023 17:18

Not the video related question but could you please help me.
I am tasked with implementation of Google SSO in our ios app. Everything's fine but i want to implement it in such a way that i have more than one client ID and based on the user the client ID should change. We cannot change things in info.plist so i am not sure how i can achieve this. I searched hours but couldn't find anything helpful please help me.

Ответить
Akimbofennec
Akimbofennec - 25.07.2023 09:06

Hey Sean, just a quick question: it is already been 4 years since SwiftUI has been released. My question is, is it still the case that UIKIT is more advanced than SwiftUI? For Rex maple, changing a placeholder holder in SwiftUI vs UIKIT? Or is SwiftUI now just as advanced as UIKIT?

Ответить
Alexander Ostrovsky
Alexander Ostrovsky - 22.07.2023 21:05

Is it possible to hide an item that is being dragged?

Ответить
Nicolai Harbo
Nicolai Harbo - 22.07.2023 13:38

Brilliant! Thank you for the good content :)

Ответить
Noah Raskin
Noah Raskin - 22.07.2023 01:40

Super awesome!

Ответить
Andrew Christie
Andrew Christie - 21.07.2023 17:53

Thanks!

Ответить
Andrew Christie
Andrew Christie - 21.07.2023 17:52

Thanks!

Ответить
Stewart Lynch
Stewart Lynch - 21.07.2023 05:16

Pretty much the perfect video Sean. So well explained as usual

Ответить
Rich Price
Rich Price - 21.07.2023 00:21

Didn’t Kavsoft build this exact thing a few days ago ??

Ответить