CombineCommunity / CombineExt

CombineExt provides a collection of operators, publishers and utilities for Combine, that are not provided by Apple themselves, but are common in other Reactive Frameworks and standards.
https://combine.community
MIT License
1.72k stars 151 forks source link

Feat: add an extension to subscribe a KeyValuePath to a Publisher #158

Open Oni-zerone opened 1 year ago

Oni-zerone commented 1 year ago

Maybe someone could find this interesting? Just a way to subscribe a KeyValue path to a publisher in one line, having the possibility also to specify the Scheduler that you want to use.

Just an use example:

    let titleRelay = CurrentValueRelay("Await")
    awaitLabel
        .subscribe(\.text, to: titleRelay)
        .store(in: &cancellables)