Fix home screen visible range updating

This commit is contained in:
Stefan Ceriu
2023-08-28 17:21:10 +03:00
parent 24aebe4616
commit 2ccf9de9b8
@@ -186,7 +186,7 @@ struct HomeScreen: View {
/// Dispatch it with a delay to allow the UI to update and the computations to be correct /// Dispatch it with a delay to allow the UI to update and the computations to be correct
/// Once we move to iOS 17 we should remove all of this and use scroll anchors instead /// Once we move to iOS 17 we should remove all of this and use scroll anchors instead
private func updateVisibleRange() { private func updateVisibleRange() {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { updateVisibleRange() } DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { delayedUpdateVisibleRange() }
} }
private func delayedUpdateVisibleRange() { private func delayedUpdateVisibleRange() {