I've created the image view and set the image dynamically based on the API response. I've set the image and constraints programmatically and didn't use any storyboard files. Currently I am setting the content mode of the image view. Now I want to set the ratio value to 21:9 to the image programmatically. Is that possible to give the ratio value to the image?
Thanks in Advance!