There are plenty of threads about aligning a button image according to the title text, but I can\'t find anything about just aligning the image to the right side of the butt
There are several different options to do it.
Use semanticContentAttribute
button.semanticContentAttribute = .forceRightToLeft
You can set semantic attribute from interface (storyboard) layout also.
or
Use UIView containing UIButton and UIImage, as shown in this snapshot.
This will make easy to handle button action, properties and customise image position & size according to your requirement. Try this.