UILabel With Padding
Sometimes you want to add padding to a UILabel. But doing so requires a parent view that adds the actual padding. This subclass fixes this by adding a property for edgeInsets and takes care of the necessary overrides to deal with the layouts. I haven’t run in to any issues with this. Let me know if you use it and improve it! // MIT License applies. import UIKit /** A `UILabel` subclass that provides a way of adding padding to the label.
Read more...