Skip to content

Commit ca0ee89

Browse files
fix text container paddings in UKTextInput for ios 16
1 parent a7b57ee commit ca0ee89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/ComponentsKit/Components/TextInput/UKTextInput.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,11 @@ extension UKTextInput {
205205
}
206206

207207
static func textView(_ textView: UITextView, padding: CGFloat) {
208-
textView.textContainerInset = .init(inset: padding)
209208
textView.textContainer.lineFragmentPadding = 0
209+
textView.textContainerInset.top = padding
210+
textView.textContainerInset.left = padding
211+
textView.textContainerInset.right = padding
212+
textView.textContainerInset.bottom = padding
210213
}
211214

212215
static func placeholder(

0 commit comments

Comments
 (0)