Skip to content

Commit

Permalink
Fix major mistake
Browse files Browse the repository at this point in the history
Fixed now
  • Loading branch information
nmn authored Jan 3, 2021
1 parent 6f65765 commit a14ec36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/iTextField/iTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public struct iTextField: UIViewRepresentable {
return textField
}

public func updateUIView(_ uiView: UITextField, context: Context) {
uiView.text = text
public func updateUIView(_ textField: UITextField, context: Context) {
textField.text = text
textField.placeholder = placeholder
textField.font = font
textField.textColor = foregroundColor
Expand Down Expand Up @@ -158,9 +158,9 @@ public struct iTextField: UIViewRepresentable {
textField.spellCheckingType = spellCheckingType

if isEditing.wrappedValue {
uiView.becomeFirstResponder()
textField.becomeFirstResponder()
} else {
uiView.resignFirstResponder()
textField.resignFirstResponder()
}
}

Expand Down

0 comments on commit a14ec36

Please sign in to comment.