소스 검색

Fix wrong function call within contentCompressionResistanceHorizontalPriority (#387)

David Wu 9 년 전
부모
커밋
b313f3e637
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/ConstraintViewDSL.swift

+ 1 - 1
Source/ConstraintViewDSL.swift

@@ -74,7 +74,7 @@ public struct ConstraintViewDSL: ConstraintAttributesDSL {
             return self.view.contentCompressionResistancePriority(for: .horizontal)
         }
         set {
-            self.view.setContentHuggingPriority(newValue, for: .horizontal)
+            self.view.setContentCompressionResistancePriority(newValue, for: .horizontal)
         }
     }