L
L
Lila Yudenkova2019-04-08 14:55:38
iOS
Lila Yudenkova, 2019-04-08 14:55:38

Interactive drag & drop board?

Aloha friends! There is a question. I wonder how you would solve such a problem ...
Now we are talking about ios native app
Imagine a dashboard (on the phone - on the iPhone) that contains various widgets with data. For example: weather forecast, number of messages, website sales, missed calls, etc. (I take it out of my head) - each widget is a rectangle or square (small - to fit the most basic). This board is interactive. This means that a person has a strip on the left with all the possible widgets that he can add to his board. Suppose he wants to put a widget with the weather on the board - he clicks on it and drags it to the board (there, for example, it is attached with the help of snapping. With the help of snapping, so that a person cannot attach these widgets to each other, and everything was more or less ordered. In general, if the widget is a rectangle, then the board is the grid onto which the user drags widgets). Well, these widgets, of course,
I'm wondering what you would use to build such functionality. You can just strike a couple of words, or, if you can, describe in more detail, I will be grateful.
All the best!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2019-04-08
@doublench21

The fastest and most efficient option is a collection with a custom layout. A collection, like a table, supports the built-in drag and drop mechanism.
If you've never done any of this, you can check out the latest available lectures from Stanford on iOS. In the end, they implement a drag-and-drop canvas. In Russian, it seems only in the text version can be found.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question