I need to display the email address from left side of a UIButton, but it is being positioned in the centre.
UIButton
Is there any way to set the alignment to the
Swift 4+
button.contentHorizontalAlignment = .left button.contentVerticalAlignment = .top button.contentEdgeInsets = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)