class YourViewHere: UIView { @IBOutlet var amountLabel: UILabel? { didSet { guard let label = amountLabel else { return } // apply font for numbers amountLabel?.font = .monospacedDigitSystemFont(ofSize: label.font.pointSize, weight: .regular) } } }
Last updated 5 years ago
Was this helpful?