Currently have a button with an embedded image. I'd like to get the image name of the button so that I can create a UIImage with it for sharing when the user clicks the button.
I've tried a variety of methods including
let imagename = sender.currentImage
let image = UIImage(name: imagename)
This results in error "Missing argument for parameter 'inBundle' in call
Looking for some guidance on how to proceed. I am going to have many buttons similar to this one and would rather build a function than individual actions for each button.