Closed RWOverdijk closed 3 years ago
You could use a SwiftUI .frame(height: xxx)
modifier to limit the height of the collection view.
eg.
VStack {
Spacer()
ASCollectionView { ... }
.frame(height: 100)
}
This documentation is helpful for UICollectionView layouts: https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/implementing_modern_collection_views
Thank you. I ended up using a frame, but I felt like it was wrong. Apparently it's not 😄
This project seems to be really useful and I've been trying to understand how it works. Is there more documentation available? It might be because I'm new to swift/swiftui but I find it difficult to understand how this works based on the examples.
More specifically, I'm trying to implement one of the "app store" demo sliders, specifically the one for "featured". I end up still having two directions to scroll in and I can't seem to get it to align to the bottom of the screen because it's taking up the full height (I think that's the vertical scroll, which I don't need but also can't get rid of).
This is what I ended up with:
And I want to move this to the bottom and have the rest be transparent:
TL;DR; I don't understand how this library works and I would really like some pointers.
I'm sorry if this already documented somewhere. I couldn't find it 😅