I\'m allocating a UIButtonTypeCustom UIButton to a UIView with a background image that is smaller than the button\'s frame. Reason why the image is smaller is because I\'m tryin
It is simple as:
ImageBn.imageView?.contentMode = .scaleAspectFit ImageBn.setImage(chosenImage, for: .normal)