After some experimentation, it seems that if you try to set contentEdgeInsets to all zeros, the default inserts are used. However, if you set them to almost zero, it works:
button.contentEdgeInsets = UIEdgeInsets(top: 0, left: 0.01, bottom: 0.01, right: 0)
It also appears that the values ββget floor 'd, so you really won't get a fractional addition.
John gibb
source share