Skip to content

Commit a6c2aa2

Browse files
author
GGsrvg
committed
drop first value when sink on subject
1 parent 75107ba commit a6c2aa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ObservableField/Elements/Binding.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ open class Binding<TC, TV>: Cancellable where TC: UIControl, TV: Equatable {
7878

7979
private func setBindingFromSubject() {
8080
self.subject
81+
.eraseToAnyPublisher()
82+
.dropFirst(1)
8183
.sink { completion in
8284
switch completion {
8385
case .finished:

0 commit comments

Comments
 (0)