Consider the following code (you can c&p it directly into a playground):
class Foo: ObservableObject {
@Published var bar = "bar"
}
let foo = Foo()
let someSubscriber = foo.$bar
.sink { value in
print("value is \(value)")
}
Although Foo has just been initialised once and it's member bar never changed, the sink executes it's receiveValue closure immediately. Is there any way to prevent this initial call from happening, e.g. is there an operator I might have overlooked?