aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-09 18:13:37 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-09 18:13:37 +0530
commitbb836b8fdc44dd5f78de70d347b51cd824fedc18 (patch)
tree02e5babb21ce9a23531686cfbf4433f8b4357424 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
parentTunnels list: Dynamic Type support for the table view (diff)
downloadwireguard-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.swift2
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