pers
02/13/2024, 1:11 PMfun onFirstNameChange(text: String) {
    setState {
        copy(
            firstName = Name(text)
        )
    }
}
swiftui
var binding : Binding<String> { Binding<String>(
    get: {
      self.text
    }, set: {
      onTextChange($0)
    })
  }
TextField( "", text: binding.max(limit: maxCount, textCountWithoutFormat: textCountWithoutFormat) )
           .foregroundColor( isValid ? Neutral50 : Red )