SwiftUI CollectionView的なアプローチ

Updated
Nov 20, 2019 4:46 AM
Created
Nov 20, 2019 4:45 AM
Tags
SwiftUISwift
Keywords
Date
This is a sketch of an approach that lets you put a ton of items into a SwiftUI ScrollView while maintaining decent performance. Even with 50,000 elements, the view appears almost immediately, and memory usage is not terrible. No weird uses of DispatchQueue.async, and (as far as I am concerned) it doesn't really contain any gross hacks. Beauty is in the eye of the beholder, etc…