When implementing the collectionSkeletonView:identifierForFooterInSection protocol it will never get called.
Cause:
In the file 'SkeletonCollectionDelegate.swift' and the method 'tableView:viewForFooterInSection' the 'identifierForHeaderInSection' is called instead of the footer as would be expected.
What type of issue is this? (place an x in one of the [ ])
[x] bug
[ ] enhancement (feature request)
[ ] question
[ ] documentation related
[ ] discussion
Requirements (place an x in each of the [ ])
[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
Hi @Spaalvast, thanks for open this issue. It's already solved, there was a problem with the delegate implementation. You can find more details in the PR #394
Description
When implementing the collectionSkeletonView:identifierForFooterInSection protocol it will never get called.
Cause: In the file 'SkeletonCollectionDelegate.swift' and the method 'tableView:viewForFooterInSection' the 'identifierForHeaderInSection' is called instead of the footer as would be expected.
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.15.0 Xcode version: 12.4 Swift version: 5
Steps to reproduce:
Expected result:
Able to remove the footer skeleton by not implementing the method or returning nil.
Actual result:
If you have a header, it will also always show a footer.
Attachments:
Logs, screenshots, sample project, funny gif, etc.