Infinite Scroll List in SwiftUI
Reading time: 4 min
This recipe shows how to implement infinite scrolling list in SwiftUI. The result code is a single view, that can be used just like any other List
. It renders data from a collection via a ViewBuilder
and triggers loading when the list is scrolled to the bottom.
File Tree with Expanding List in SwiftUI
Reading time: 2 min
This recipe shows how to create a simple file tree using SwiftUI expandable list. This feature is useful for representing any hierarchical data structure, allowing the user to expand and collapse branches to navigate the tree.