diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-09 18:13:37 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-09 18:13:37 +0530 |
commit | bb836b8fdc44dd5f78de70d347b51cd824fedc18 (patch) | |
tree | 02e5babb21ce9a23531686cfbf4433f8b4357424 /WireGuard/WireGuard/UI/iOS | |
parent | Tunnels list: Dynamic Type support for the table view (diff) | |
download | wireguard-apple-bb836b8fdc44dd5f78de70d347b51cd824fedc18.tar.xz wireguard-apple-bb836b8fdc44dd5f78de70d347b51cd824fedc18.zip |
Tunnels list: Dynamic Type support for the add button at the center
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 |
1 files changed, 2 insertions, 0 deletions
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 |