Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- class MarginLabel: UILabel {
- var insets = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 5)
- override func drawText(in rect: CGRect) {
- super.drawText(in: rect.inset(by: insets))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement