]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Tunnels list: Dynamic Type support for the add button at the center
authorRoopesh Chander <roop@roopc.net>
Sun, 9 Dec 2018 12:43:37 +0000 (18:13 +0530)
committerRoopesh Chander <roop@roopc.net>
Sun, 9 Dec 2018 12:43:37 +0000 (18:13 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift

index d0ecb97959bdccdecd20ef7ffe3ea0975c77abb3..187447c38a456d163250962df18dd4250590d94b 100644 (file)
@@ -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