Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import UIKit
  2.  
  3. class MarginLabel: UILabel {
  4.  
  5. var insets = UIEdgeInsets(top: 0, left: 5, bottom: 0, right: 5)
  6.  
  7. override func drawText(in rect: CGRect) {
  8. super.drawText(in: rect.inset(by: insets))
  9. }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement