Post

Replies

Boosts

Views

Activity

Reply to Expected behaviour iOS14 vs iOS15 - Bound text in TextField goes out of sync with source of truth value on iOS15 Xcode Beta 2
+1 to this. An approach when you use .onReceive modifier, like in example below, from the view itself also no longer works. TextField("Total number of people", text: $numOfPeople) .keyboardType(.numberPad) .onReceive(Just(numOfPeople)) { newValue in let filtered = newValue.filter(\.isNumber) if filtered != newValue { self.numOfPeople = filtered } }
Nov ’21