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
For me changing the update on mainQueue did work in iOS 15. @Published var textFieldText: String = "" {         didSet {             if textFieldText.count > 2 {                 DispatchQueue.main.async { [weak self] in                     guard let self = self else { return }                     self.textFieldText = String(self.textFieldText.prefix(2))                 }             }         }     }
Nov ’21