소스 검색

hint label set content hugging priority high

nayooti 5 년 전
부모
커밋
099efd245b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.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