Side menu: Support Dynamic Type.

This commit is contained in:
SBiOSoftWhare
2021-06-18 19:27:34 +02:00
parent 57a7dc9da7
commit e580a0de43
5 changed files with 14 additions and 4 deletions
@@ -165,7 +165,10 @@ final class SideMenuViewController: UIViewController {
for sideMenuItem in viewData.sideMenuItems {
let sideMenuActionView = SideMenuActionView.instantiate()
sideMenuActionView.translatesAutoresizingMaskIntoConstraints = false
sideMenuActionView.heightAnchor.constraint(equalToConstant: Constants.sideMenuActionViewHeight).isActive = true
let heightConstraint = sideMenuActionView.heightAnchor.constraint(equalToConstant: 0)
heightConstraint.priority = .defaultLow
heightConstraint.isActive = true
sideMenuActionView.update(theme: self.theme)
sideMenuActionView.fill(with: sideMenuItem)
sideMenuActionView.delegate = self