Post

Replies

Boosts

Views

Activity

TextField with Double or Int not binding back ?
Hi there, In a SwiftUI View, I have a @State var test: Double? and a TextField like that : TextField("Test", value: $test, formatter: NumberFormatter()) the variable test is constantly nil and never being populated with the Double value of the entered text. Is it a bug or a concept error of mine ?? Thanks!
2
1
1.5k
Jul ’22