-
-
Save laevandus/7e2fed5571afdebc427105000b6c151f to your computer and use it in GitHub Desktop.
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
// Old | |
iqDataSource.didChangeSampleCount | |
.sink { [weak self] sampleCount in | |
guard let self else { return } | |
let seriesDelta = self.layout.adjust(to: sampleCount) | |
guard seriesDelta < 0 else { return } | |
self.resetTiles(priority: .immediately) | |
} | |
.store(in: &cancellables) | |
// New | |
iqDataSource.didChangeSampleCount | |
.sink { [weak self] sampleCount in | |
guard let self else { return } | |
let seriesDelta = layout.adjust(to: sampleCount) | |
guard seriesDelta < 0 else { return } | |
resetTiles(priority: .immediately) | |
} | |
.store(in: &cancellables) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment