     }
     
 	func showImagePicker() {
-        pickerController.UIDelegate = AssetClickHandler()
         if self.exportManually {
             DKImageAssetExporter.sharedInstance.add(observer: self)
         }

		if UI_USER_INTERFACE_IDIOM() == .pad {
			pickerController.modalPresentationStyle = .formSheet
		}
		
        if pickerController.inline {
            self.showInlinePicker()

}

// MARK: - DKImagePickerControllerBaseUIDelegate

class AssetClickHandler: DKImagePickerControllerBaseUIDelegate {
    override func imagePickerController(_ imagePickerController: DKImagePickerController, didSelectAssets: [DKAsset]) {
        //tap to select asset
