Skip to content

Commit

Permalink
fix: Updating textColor and textAlignment when state changes (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergesort committed Aug 31, 2023
1 parent e8c3062 commit b76afc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ResponsiveTextField/ResponsiveTextField.swift
Expand Up @@ -338,6 +338,8 @@ extension ResponsiveTextField: UIViewRepresentable {
uiView.isSecureTextEntry = isSecure
uiView.returnKeyType = returnKeyType
uiView.text = text.wrappedValue
uiView.textColor = textColor
uiView.textAlignment = textAlignment

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

0 comments on commit b76afc2

Please sign in to comment.