So I'm building a project based on SwiftUI and on one of my struct Views I have a UIViewRepresentable that produces a UICollectionView. Also on this View, I have a @State variable called 'showNextSheet' that presents a new sheet when toggled.
I've implemented the UICollectionView successfully, but now I'm trying to present a new sheet when a user clicks on a cell in the UICollectionView. I have access to the 'didSelectItemAt' method, but I can't figure out how to pass the Binding variable (showNextSheet) into the cell. Is this possible?