Juanpe/SkeletonView

Does not work with new UICollectionView Compositional Layout

開放

#321 建立於 2020年9月4日

 (9 則留言) (0 個反應) (0 位負責人)Swift (1,126 個分叉)batch import
featurehelp wantedtriaged

倉庫指標

星標
 (12,895 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

⚠️ Please fill out this template when filing an issue.

🙏🏼 Please check if it already exists other issue related with yours.

What did you do?

Implemented a UICollectionView using the new Compositional Layout feature.

Then added this to viewDidLoad()

DispatchQueue.main.async {
            self.collectionView.showSkeleton()
        }

What did you expect to happen?

Expected to see the skeleton view applied to the UICollectionView

What happened instead?

I assume that since UICollectionView implementations that use Compositional Layout use diffable datasources instead of implementing the CollecitonView data source the skeleton view was not applied to my collectionview cells.

Steps to reproduce the behavior

Implement a UICollectionView with Compositional Layout and try applying the SkeletonView

SkeletonView Environment

SkeletonView version: SkeletonView (1.8.8) Xcode version: 11.7 Swift version: 5.2

貢獻者指南