Tunnels list: Dynamic Type support for the add button at the center

This commit is contained in:
Roopesh Chander 2018-12-09 18:13:37 +05:30
parent 3a7dbc6e37
commit 527c1fcb37

View File

@ -428,6 +428,8 @@ class BorderedTextButton: UIView {
init() {
button = UIButton(type: .system)
button.titleLabel?.font = UIFont.preferredFont(forTextStyle: .body)
button.titleLabel?.adjustsFontForContentSizeCategory = true
super.init(frame: CGRect.zero)
addSubview(button)
button.translatesAutoresizingMaskIntoConstraints = false