From 8bdfa7f09fd573636772d3b1346bc94425e8cb65 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 27 Jul 2019 18:27:47 -0400 Subject: [PATCH] Use monospace digit font for character counter Fixes #29 --- Tusker/Screens/Compose/ComposeViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Compose/ComposeViewController.swift b/Tusker/Screens/Compose/ComposeViewController.swift index 1e277833..ae100243 100644 --- a/Tusker/Screens/Compose/ComposeViewController.swift +++ b/Tusker/Screens/Compose/ComposeViewController.swift @@ -156,6 +156,8 @@ class ComposeViewController: UIViewController { stackView.insertArrangedSubview(replyLabelContainer, at: 1) } + // we have to set the font here, because the monospaced digit font is not available in IB + charactersRemainingLabel.font = .monospacedDigitSystemFont(ofSize: 17, weight: .regular) updateCharactersRemaining() updatePlaceholder()