pers
fun onFirstNameChange(text: String) { setState { copy( firstName = Name(text) ) } }
var binding : Binding<String> { Binding<String>( get: { self.text }, set: { onTextChange($0) }) } TextField( "", text: binding.max(limit: maxCount, textCountWithoutFormat: textCountWithoutFormat) ) .foregroundColor( isValid ? Neutral50 : Red )
A modern programming language that makes developers happier.