Skip to content

Commit 9abca2b

Browse files
committed
Cleanup: DiffableTextField.
1 parent 47b4105 commit 9abca2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/DiffableTextViewsXiOS/DiffableTextField.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ public struct DiffableTextField<Style: DiffableTextStyleXiOS>: UIViewRepresentab
112112
//=--------------------------------------------------------------------=
113113

114114
@inlinable func update(_ upstream: DiffableTextField, _ environment: EnvironmentValues) {
115-
self.upstream = upstream; self.environment = environment
116-
self.synchronize(); self.downstream.transform(environment.diffableTextField_onUpdate)
115+
self.upstream = upstream; self.environment = environment
116+
self.synchronize() // on update is same as on did update
117+
self.downstream.transform(environment.diffableTextField_onUpdate)
117118
}
118119

119120
//=--------------------------------------------------------------------=

0 commit comments

Comments
 (0)