Эх сурвалжийг харах

hint label set content hugging priority high

nayooti 5 жил өмнө
parent
commit
099efd245b

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

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