Browse Source

hint label set content hugging priority high

nayooti 5 years ago
parent
commit
099efd245b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      deltachat-ios/Controller/QrViewController.swift

+ 2 - 1
deltachat-ios/Controller/QrViewController.swift

@@ -101,7 +101,6 @@ class QrViewContentView: UIView {
         label.numberOfLines = 0
         label.textAlignment = .center
         label.font = UIFont.systemFont(ofSize: 14)
-        label.makeBorder()
         return label
     }()
 
@@ -167,6 +166,8 @@ class QrViewContentView: UIView {
         qrCodeDefaultWidth.isActive = true
         qrCodeView.heightAnchor.constraint(equalTo: qrCodeView.widthAnchor, multiplier: 1).isActive = true
 
+        hintLabel.setContentHuggingPriority(.defaultHigh, for: .vertical)
+
         let stackTopAnchor = stackView.topAnchor.constraint(equalTo: container.layoutMarginsGuide.topAnchor)
         stackTopAnchor.priority = .defaultLow
         stackTopAnchor.isActive = true