We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
textFieldDidChangeSelection(_:)
1 parent 8edaef8 commit e06cac8Copy full SHA for e06cac8
Sources/DiffableTextViewsXiOS/DiffableTextField.swift
@@ -230,8 +230,8 @@ public struct DiffableTextField<Style: DiffableTextStyle>: UIViewRepresentable {
230
//=----------------------------------=
231
// MARK: Update Downstream As Needed
232
233
- let positions = context.field.positions
234
- if selection != positions {
+ let positions = context.field.positions
+ if positions != selection {
235
lock.perform {
236
self.downstream.update(selection: positions)
237
}
0 commit comments