Commit Graph
5 Commits
Author SHA1 Message Date
Maciej Gomółka bc8f3e13f9 Do not start loading bar animation when view is not visible 2026-01-26 12:37:36 +01:00
Mateusz Szklarek c84038174e Improve animation and API for loading bar (make usage easier)
Using timer and syncing it with animation cycles is not best idea, it's
super easy to get out of sync. I switched to completion from:

func withAnimation<Result>(
    _ animation: Animation? = .default,
    completionCriteria: AnimationCompletionCriteria = .logicallyComplete,
    _ body: () throws -> Result,
    completion: @escaping () -> Void
) rethrows -> Result

rely on that for animation cycle.
2025-11-28 11:46:42 +01:00
Mateusz Szklarek 02e85d8011 Refactor after self code review for readability
Make tests independent from specific cycle duration
2025-11-03 12:06:33 +01:00
Mateusz Szklarek 69407303ad Implement logic for finishing whole animation cycle in LoadingBarStateStore 2025-11-03 12:06:33 +01:00
Mateusz Szklarek d55c4c9f2d Implement LoadingBar and make CyclingProgressBar internal in InboxCoreUI 2025-11-03 12:06:33 +01:00