Post

Replies

Boosts

Views

Activity

Drag drop nested list in swiftui
Hi, I managed to have a nested list in swiftui 3 (with foreach) and drag and drop to reorder the list when I enter the built-in edit mode. Problems / limitation when dragging / dropping a list item from edit mode: I can't change its nesting level: for example, if I drag an item that is 3 nested levels deep, I can't seem to be able to drop it on let's say level 1. When an item has children, and they are expanded, if I drag the father, the children will not follow. I can't drag from one section, and drop on another. What are the solutions to circumvent those problems? Is there built-in way to do it, if not, is it even possible without resorting to UIKit?
1
0
1.7k
Nov ’22
Drag drop nested list in swiftui
Hi, I managed to have a nested list in swiftui 3 (with foreach) and drag and drop to reorder the list when I enter the built-in edit mode. Problems / limitation when dragging / dropping a list item from edit mode: I can't change its nesting level: for example, if I drag an item that is 3 nested levels deep, I can't seem to be able to drop it on let's say level 1. When an item has children, and they are expanded, if I drag the father, the children will not follow. I can't drag from one section, and drop on another. What are the solutions to circumvent those problems? Is there built-in way to do it, if not, is it even possible without resorting to UIKit?
Replies
1
Boosts
0
Views
1.7k
Activity
Nov ’22
How to provide a rich text WYSIWYG to user?
Hi, I want users of a swiftui app to be able to enter text in a field, and to: Change text style Change text size Add bullet lists What's the general direction I should take to implement this, possibly without using an external library?
Replies
2
Boosts
0
Views
1.1k
Activity
Dec ’21