A label with padding for iOS
A label with padding for iOS
There is a way to use PaddingLabel in your project:
pod 'PaddingLabel', '1.2'
Manually drag file PaddingLabel.swift to your project.
At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it.
UILabel
in your storyboard
, xib
to PaddingLabel
.import PaddingLabel
let label = PaddingLabel(frame: CGRect(x: 0, y: 0, width: 500, height: 100))
label.topInset = 5.0 //by default
label.bottomInset = 5.0 //by default
label.leftInset = 7.0 //by default
label.rightInset = 7.0 //by default
All source code is licensed under the MIT License.