diff --git a/Source/ConstraintViewDSL.swift b/Source/ConstraintViewDSL.swift index 0242c4a..8b38d32 100644 --- a/Source/ConstraintViewDSL.swift +++ b/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) } }