-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.hideSkeleton() function does not work with UICollectionViewCompositionalLayout's Orthogonal Section Scrolling #546
Comments
@dbpradana I am facing the same issue, did you find any workaround? |
@Juanpe pls help |
same issue |
@noorbhatia i don't really know if this workaround is affecting any performance or not, but right now the only way i could make it works is by modifying the function to set up the collectionView layout at my above code to Basically i need to first create a compositional layout without the orthogonal scrolling, do the data load, and after i run the |
just type cellname.hideSkeleton() in (cell for row at ) before configure cell with data |
Description
The skeletonView won't hide when the .hideSkeleton() function runs for a UICollectionView that has orthogonal scrolling behavior set at the Compositional Layout.
Code snippets and some more explanation are provided at the Attachment section below.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
SkeletonView Environment:
SkeletonView version: 1.30.4
Xcode version: 14.3 (14E222b)
Swift version: Swift 5
Steps to reproduce:
UICollectionView
withUICollectionViewCompositionalLayout
andorthogonalScrollingBehavior
.isSkeletonable
for collection view and it's cells to true.collectionView.showAnimatedGradientSkeleton()
.collectionView.hideSkeleton(reloadDataAfter: true, transition: .crossDissolve(0.25))
when data load is finished.Expected result:
Animated skeleton hides
Actual result:
Animated skeleton are still showing
Attachments:
Here's the code when i set the UICollectionView's Compositional Layout:
I've tried to comment out the
section.orthogonalScrollingBehavior = .continuous
part and the animated skeleton views are hides as expected when the .hideSkeleton() function runs.The text was updated successfully, but these errors were encountered: