I am using DKImagePickerController to select the video from gallery and trying to show a thumbnail of it. Don\'t know why, but it\'s taking 10-15 sec to display the image. Any h
The problem is that you are calling thumbnailForVideoAtURL on a background thread. You need to be on the main thread because you are talking to the interface. 
tempDkAsset.fetchAVAssetWithCompleteBlock { (tempVideo, info) in
    DispatchQueue.main.async {
        tempImageView.image = self.thumbnailForVideoAtURL(tempVideo!)
    }
}