Skip to content

Commit b76afc2

Browse files
authored
fix: Updating textColor and textAlignment when state changes (#15)
1 parent e8c3062 commit b76afc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ResponsiveTextField/ResponsiveTextField.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ extension ResponsiveTextField: UIViewRepresentable {
338338
uiView.isSecureTextEntry = isSecure
339339
uiView.returnKeyType = returnKeyType
340340
uiView.text = text.wrappedValue
341+
uiView.textColor = textColor
342+
uiView.textAlignment = textAlignment
341343

342344
if !adjustsFontForContentSizeCategory {
343345
// We should only support dynamic font changes using our own environment

0 commit comments

Comments
 (0)