Skip to content

Commit 483778a

Browse files
Merge pull request #6 from swiftcomponentsio/dev
Fixed bug in UKInputField
2 parents 13b208e + 46c9a63 commit 483778a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftComponents/InputField/UKInputField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ open class UKInputField: UIView, UKComponent {
114114
padding: self.model.spacing
115115
)
116116

117-
self.textField.setContentCompressionResistancePriority(.defaultHigh, for: .horizontal)
118-
self.titleLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
117+
self.textField.setContentHuggingPriority(.defaultLow, for: .horizontal)
118+
self.titleLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal)
119119
}
120120

121121
open override func layoutSubviews() {

0 commit comments

Comments
 (0)