-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adaptive Layout doesn't work with compositional layout of collection view #628
Comments
Thank you for your sample code. I'll try to investigate this issue later. |
I confirm |
Finally, I've fixed this issue. As a temporary workaround, you can add a heightAnchor to the collection view to resolve the issue. - collectionView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
+ collectionView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
+ collectionView.heightAnchor.constraint(greaterThanOrEqualToConstant: 1.0), |
Thank you very much |
scenee
added a commit
that referenced
this issue
May 31, 2024
scenee
added a commit
that referenced
this issue
Jun 8, 2024
* Fix #628 * Add a new sample to test UICollectionView using a compositional layout
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When working with
FloatingPanelAdaptiveLayoutAnchor
, regularUICollectionViewFlowLayout
works fine, but compositional layout shows nothing. Can someone let me know what kind of a mistake I am doing here? Maybe it is something on my end.Expected behavior
To adapt to the compositional layout height
Actual behavior
Nothing is shown
Steps to reproduce
Code example that reproduces the issue
CollectionViewFloatingPanel.zip
How do you display panel(s)?
Modally
How many panels do you displays?
1
Environment
Library version
2.8.2
Installation method
iOS version(s)
17.4
Xcode version
15.3
The text was updated successfully, but these errors were encountered: