I have a problem in one of my iOS app projects.
My question is: What is the most efficient way to create a circular UIButton with a specific size that will have an Aspect Fill UIImage, that the user can update anytime from the camera or library?
I'm trying to create a circular UIButton that will have the image that the user uploads. One solution I've tried is to make the image circular and then overlay it with just an empty button, but it doesn't feel too efficient.
I want to use these buttons in a UITableView, so basically more than one of these buttons.
I hope I can get an idea (not necessarily an example code, but more like a logic to make it more efficient and simple) of how to approach this problem with the UIButton so that the image will be updated and Aspect Filled within the properties of the button.