From bb836b8fdc44dd5f78de70d347b51cd824fedc18 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sun, 9 Dec 2018 18:13:37 +0530 Subject: [PATCH] Tunnels list: Dynamic Type support for the add button at the center Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index d0ecb97..187447c 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -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 -- 2.47.2