From: Roopesh Chander Date: Sun, 9 Dec 2018 12:43:37 +0000 (+0530) Subject: Tunnels list: Dynamic Type support for the add button at the center X-Git-Tag: 0.0.20181104-6~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb836b8fdc44dd5f78de70d347b51cd824fedc18;p=thirdparty%2Fwireguard-apple.git Tunnels list: Dynamic Type support for the add button at the center Signed-off-by: Roopesh Chander --- 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