> For the complete documentation index, see [llms.txt](https://sagar-r-kothari.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sagar-r-kothari.gitbook.io/blog/_posts/2020-02-03-fontfornumbersandcurrency.md).

# 2020-02-03-FontForNumbersAndCurrency

```swift
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)
    }
  }
}
```
