cell hides while reuse Rx CollectionView Section Reload DataSource iOS swift

 Problem:

cell hides while reuse Rx CollectionView Section Reload DataSource but height came as normal with empty space came.

Solution:

        var mySection = SectionOfMine(model: .datamodelitems: [])

        if let old = model,let oldList = old.modellist, oldList.count>0{

            mySection.items.append(. datamodel(infoold!))

        }

        sections.append(mySection)


Because it had an issue that i had added nil value in model.So i checked and added that if any value exist.


Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift