Skip to content

Commit e06cac8

Browse files
committed
Cleanup: textFieldDidChangeSelection(_:)
1 parent 8edaef8 commit e06cac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/DiffableTextViewsXiOS/DiffableTextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ public struct DiffableTextField<Style: DiffableTextStyle>: UIViewRepresentable {
230230
//=----------------------------------=
231231
// MARK: Update Downstream As Needed
232232
//=----------------------------------=
233-
let positions = context.field.positions
234-
if selection != positions {
233+
let positions = context.field.positions
234+
if positions != selection {
235235
lock.perform {
236236
self.downstream.update(selection: positions)
237237
}

0 commit comments

Comments
 (0)