14 Commits
Author SHA1 Message Date
Maciej Gomółka de94c14202 Refactor after the CR 2026-01-26 13:37:39 +01:00
Maciej Gomółka bc8f3e13f9 Do not start loading bar animation when view is not visible 2026-01-26 12:37:36 +01:00
Maciej Gomółka 7200f6c854 Do not translate preview Strings 2026-01-20 09:47:28 +01:00
Maciej Gomółka 28bc237ce9 Fix the bug with the app freezing on iOS 17 2025-12-30 10:54:41 +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 ebaec05e71 Decrease cycle duration for loading bar to 2 seconds 2025-11-05 10:32:07 +01:00
Mateusz Szklarek e6b0330548 Apply changes after code review suggestions 2025-11-03 12:23:29 +01:00
Mateusz Szklarek de8cbb014d Add missing docs for LoadingBarPresenter 2025-11-03 12:06:33 +01:00
Mateusz Szklarek 9d1500b68c Remove background color from CyclingProgressBar to match the underlying color 2025-11-03 12:06:33 +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 d97975a06b Change cycle duration from 1.2 to 2.5 seconds [requested by design team] 2025-11-03 12:06:33 +01:00
Mateusz Szklarek dd78eb4918 Refactor CyclingProgressBar for readability 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