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
might help someone
button.subviews.first?.contentMode = .scaleAspectFit