Tunnels list: Dynamic Type support for the add button at the center
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -428,6 +428,8 @@ class BorderedTextButton: UIView {
|
|||||||
|
|
||||||
init() {
|
init() {
|
||||||
button = UIButton(type: .system)
|
button = UIButton(type: .system)
|
||||||
|
button.titleLabel?.font = UIFont.preferredFont(forTextStyle: .body)
|
||||||
|
button.titleLabel?.adjustsFontForContentSizeCategory = true
|
||||||
super.init(frame: CGRect.zero)
|
super.init(frame: CGRect.zero)
|
||||||
addSubview(button)
|
addSubview(button)
|
||||||
button.translatesAutoresizingMaskIntoConstraints = false
|
button.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
|||||||
Reference in New Issue
Block a user