                 cell.contentLabel.text = imageURL.absoluteString
             } else if let videoURL = item.videoURL {
                 cell.contentLabel.text = videoURL.absoluteString
+            } else if let pdfURL = item.pdfURL {
+                cell.contentLabel.text = pdfURL.absoluteString
             }
         }
         

                }
            }
        }
        
        let toastLabel = UILabel()
        toastLabel.numberOfLines = 0
        toastLabel.backgroundColor = UIColor.clear
        toastLabel.textColor = UIColor.darkText
        toastLabel.textAlignment = .center
        toastLabel.font = UIFont(name: "Montserrat-Light", size: 12.0)
        toastLabel.text = "Test"
        let margin = CGFloat(20)
        let padding = CGFloat(10)

        let size = toastLabel.sizeThatFits(CGSize(width: self.view.bounds.width - margin * 2 - padding * 2, height: 200))
        let frame = CGRect(x: (self.view.bounds.width - size.width) / 2,
                                 y: (self.view.bounds.height - size.height) / 2,
                                 width: size.width + padding,
                                 height: size.height + padding)
        
        toastLabel.frame = CGRect(x: 0, y: 0, width: frame.width, height: frame.height)

        gallery.footerView = toastLabel
        
        return gallery
    }
    
    // MARK: - UIViewControllerPreviewingDelegate
    
    @available(iOS 9.0, *)

    }
}

extension DemoViewController: DKPhotoGalleryDelegate {
    func photoGallery(_ gallery: DKPhotoGallery, didShow index: Int) {
        if let titleLabel = gallery.footerView as? UILabel {
            if let title = gallery.items?[index].title {
                titleLabel.text = title
            } else {
                titleLabel.text = nil
            }
        }
    }
}
