HGPlaceholders icon indicating copy to clipboard operation
HGPlaceholders copied to clipboard

PlaceholderData Image Not Animated for CollectionView

Open QuynhNguyen opened this issue 6 years ago • 0 comments

    // animate the cell
    func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
        
        if placeholder.style?.isAnimated == false {
            return
        }
        
        guard let placeholderTableViewCell = cell as? PlaceholderTableViewCell else { return }
        animate(cell: placeholderTableViewCell)
    }

Tableview has the above to animate the image but there is not one for CollectionView

QuynhNguyen avatar Jul 03 '18 05:07 QuynhNguyen