Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.5k stars 1.1k forks source link

NSInvalidArgumentException - must pass a valid reuse identifier to -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] #535

Open LeonidSafronov opened 1 year ago

LeonidSafronov commented 1 year ago

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

in file SkeletonCollectionDataSource.swift on line 87 you have optional cellIdentifier with default: "". Sometimes it creates exception.

SkeletonView Environment:

SkeletonView version: 1.30.4 Xcode version: 14.1 **Swift version: 5.7

Steps to reproduce:

Please replace this with the steps to reproduce the behavior.

1. 2. 3.

Expected result:

Not terminating app

Actual result:

Terminating app

Attachments:

From firebase crashlytics

image Screenshot 2023-03-27 at 08 57 57