Skip to content

Instantly share code, notes, and snippets.

View DevFatani's full-sized avatar
🎯
Focusing

Muhammad Taning DevFatani

🎯
Focusing
View GitHub Profile
@konnnn
konnnn / UILabel+Padding.swift
Last active February 22, 2024 13:24
Swift 4: Adding space/padding to a UILabel Programmatically and Storyboard
/*
If you use Storyboard, don't forget to set UIlabel to PaddingLabel
*/
import UIKit
class PaddingLabel: UILabel {
var topInset: CGFloat
var bottomInset: CGFloat