iOS Swipecellkit editaction close swift || swipe collectionviewcell going blank white swift

Problem:

While i had tried to call edit actions in swipe cell kit after navigation to other screen came back to collectionView cell data hides and it shows as blank.

Solution:

If you are tried to editaction after that you call the below method then the above problem solves.Because if you are called the edit action you must have to resign the edit action.

            let cell = collectionView.cellForItem(at: indexPath) asNoteCollectionCell

            cell.hideSwipe(animated: true, completion: nil)



You have to call the above function in the below method.

    public func collectionView(_ collectionView: UICollectionView, editActionsForItemAt indexPath: IndexPath, for orientation: SwipeActionsOrientation) -> [SwipeAction]? {


}




Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift