How to present a UICollectionView in SwiftUI with UIViewControllerRepresentable
问题 Firstly, I know there are options for using SwiftUI Lists etc... to get similar effects. But I need the automatic scrolling capabilities of a UICollectionView so I'd really like to just implement an "old school" version. I don't even want the compositional layout version ideally. My current code looks like this: import SwiftUI struct CollectionView: UIViewControllerRepresentable { private var isActive: Binding<Bool> private let viewController = UIViewController() private let