Categories
Uncategorized

Dynamically loading a hierarchical list in SwiftUI

Today’s challenge: use the standard SwiftUI list view to navigate through a folder structure. All examples I could find work based on a pre-defined nested data structure, but that won’t work for a folder / file hierarchy: the nesting can be so deep that loading performance will be not acceptable. Especially when browsing a network…