This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I think this works and doesn't create circular references? | |
/* | |
Usage: Add OCObservableKeyPaths conformance to the observed type. Then, e.g. | |
audioPlayer | |
.publisher(forObservableKeyPaths: [ \.timestamp, \.duration ]) | |
.sink { | |
// respond to change | |
} |
OlderNewer