I am uploading an image via click on button and I want to show image name on same button (Which I am using to upload image) how can I do ?
@IBAction func btnChooseImageAction(_ sender: Any) {
if UIImagePickerController.isSourceTypeAvailable(.savedPhotosAlbum {
print("Button capture")
imagePicker.delegate = self
imagePicker.sourceType = .savedPhotosAlbum;
imagePicker.allowsEditing = false
self.present(imagePicker, animated: true, completion: nil)
}
}