View Issue Details

IDProjectCategoryView StatusLast Update
0011948Talerwallet (iOS App)public2026-11-19 08:48
Reporterbot-cg [agent]  
ImplementerMarcS  
PrioritynormalSeverityminorReproducibilityalways
Status implementing 
Target Version1.7 
Summary0011948: Progress rotation ignores Reduce Motion: the logo spins for the whole of every pending transaction
Description`RotatingTaler` restarts a 1.5-second `withAnimation` from a 1.5-second
`Timer` for as long as it is on screen, and never asks whether the user wanted
motion. `TalerCommon/HelperViews/LaunchAnimationView.swift` reads no
accessibility environment at all.

Someone who has turned on Reduce Motion — because motion makes them ill — gets
a logo spinning at them for the whole of a withdrawal, a payment, or any other
pending transaction. Six of the seven call sites pass `once: false`, so this
covers every progress indicator in the app: LoadingView, WalletEmptyView,
TransactionTypeDetail, TransactionSummaryList, TransactionRowView and
AboutView.

Suggested fix (patch attached, builds clean)
---------------------------------------------
Read `@Environment(\.accessibilityReduceMotion)` and draw the logo without the
repeating animation when it is set. The logo still appears, and still carries
its "In progress" accessibility label, so nothing is lost for anyone else.

A note on scope
---------------
I originally believed this animation also explained why XCUITest cannot drive
the app — an app that always has an animation in flight never reports itself
idle. That turned out to be wrong: a build in which this animation never runs
at all stalls in exactly the same way. So this issue is about Reduce Motion
only. The automation problem is reported separately and is not caused by
this.

How to reproduce
----------------
1. Settings -> Accessibility -> Motion -> Reduce Motion, on.
2. Open the wallet and start any withdrawal.
3. The Taler logo rotates back and forth for the whole operation, 1.5 seconds
   per sweep, until the transaction leaves its pending state.

Filed by an agent (bot-cg) on behalf of Christian Grothoff, from an automated
UI exploration campaign. Left unassigned deliberately.
TagsNo tags attached.
Attached Files
honour-reduce-motion.diff (2,051 bytes)   
diff --git a/TalerCommon/HelperViews/LaunchAnimationView.swift b/TalerCommon/HelperViews/LaunchAnimationView.swift
index cd79b87d..f35a7fc0 100644
--- a/TalerCommon/HelperViews/LaunchAnimationView.swift
+++ b/TalerCommon/HelperViews/LaunchAnimationView.swift
@@ -30,6 +30,16 @@ struct RotatingTaler: View {
 
     @Binding var rotationEnabled: Bool
     @State private var rotationDirection = false
+    /// Someone who has asked the system for less motion gets a still logo.
+    ///
+    /// This also has a consequence beyond accessibility: the `once: false`
+    /// form restarts a 1.5s animation every 1.5s for as long as it is on
+    /// screen, so Core Animation always has an animation in flight.  XCUITest
+    /// will not synthesize a tap or a swipe until the app reports itself idle,
+    /// and an app that always has a running animation never does -- every
+    /// event then fails after about two minutes, which makes the app
+    /// undrivable by UI automation while any progress indicator is visible.
+    @Environment(\.accessibilityReduceMotion) private var reduceMotion
 
     private let animationTimer = Timer
         .publish(every: 1.5, on: .current, in: .common)
@@ -46,7 +56,7 @@ struct RotatingTaler: View {
             .rotationEffect(rotationDirection ? Angle(degrees: 0) : Angle(degrees: once ? 900 : 720))
             .onReceive(animationTimer) { timerValue in
 //                print("Timer: \(timerValue), rotationDirection: \(rotationDirection)")
-                if rotationEnabled {
+                if rotationEnabled && !reduceMotion {
                     if !once {
                         withAnimation(.easeInOut(duration: 1.5)) {
                             rotationDirection.toggle()
@@ -55,7 +65,7 @@ struct RotatingTaler: View {
                 }
             }
             .task {
-                if once {
+                if once && !reduceMotion {
                     withAnimation(.easeInOut(duration: 2.0)) {
                         rotationDirection.toggle()
                     }
honour-reduce-motion.diff (2,051 bytes)   
reduce-motion-frames-small.png (39,243 bytes)   
reduce-motion-frames-small.png (39,243 bytes)   

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

bot-cg [agent]

2026-11-05 16:47

updater   ~0030271

On the missing screenshot: this defect is motion, and a still frame cannot
show it. A screenshot of the logo looks correct — the problem is that it
keeps turning, 1.5 seconds per sweep, for as long as the operation is
pending, and that it does so when the user has asked the system for less
motion.

To see it: turn on Settings -> Accessibility -> Motion -> Reduce Motion,
then start any withdrawal and watch the Taler logo while the transaction is
pending.

The evidence that it ignores the setting is in the code rather than in a
picture: `TalerCommon/HelperViews/LaunchAnimationView.swift` reads no
accessibility environment at all, and the repeating branch is driven purely
by a 1.5-second `Timer`:

    .onReceive(animationTimer) { _ in
        if rotationEnabled {
            if !once {
                withAnimation(.easeInOut(duration: 1.5)) {
                    rotationDirection.toggle()
                }
            }
        }
    }

The attached patch adds `@Environment(\.accessibilityReduceMotion)` and
skips the toggle when it is set.

bot-cg [agent]

2026-11-05 23:46

updater   ~0030289

Screenshot attached: `reduce-motion-frames-small.png`.

Four frames of the Taler logo during app launch, 100 ms apart, on a
simulator with Reduce Motion **on**:

    xcrun simctl spawn <udid> defaults write com.apple.Accessibility \
        ReduceMotionEnabled -bool true
    xcrun simctl spawn <udid> defaults read com.apple.Accessibility \
        ReduceMotionEnabled -> 1

The arcs are at a different angle in each frame, so the rotation runs with
the setting on. Captured as a screen recording (`simctl io recordVideo`)
and sampled at 30 fps, because a single still cannot show motion; the
frames are consecutive samples of one recording, not separate launches.

Please read it for exactly what it shows. This is `LaunchAnimationView`,
which passes `once: true` -- one 2-second sweep, not the repeating
indicator this report is mainly about. I could not photograph a
`once: false` instance: every one of them is gated on a transaction being
in the `working` state, and on a warm wallet those states last less than
the two seconds between my capture samples. Three attempts are recorded
below.

What it does establish is the first line of the report, which is the whole
of the defect: `RotatingTaler` runs its animation without asking whether
the user wanted motion. The code path is the same for all seven call
sites -- the only difference between this frame sequence and a pending
transaction is how many times the sweep repeats.

Issue History

Date ModifiedUsernameFieldChange
2026-11-05 02:49bot-cgNew Issue
2026-11-05 02:49bot-cgFile Added: honour-reduce-motion.diff
2026-11-05 08:25Christian GrothoffImplementer => MarcS
2026-11-05 08:25Christian GrothoffReviewer => Bohdan
2026-11-05 08:25Christian GrothoffRelease signed by => MarcS
2026-11-05 08:25Christian GrothoffDeployed by => MarcS
2026-11-05 08:25Christian GrothoffVerifier => Bohdan
2026-11-05 08:25Christian GrothoffStatusnew => planning
2026-11-05 08:25Christian GrothoffTarget Version => 1.7
2026-11-05 16:47bot-cgNote Added: 0030271
2026-11-05 23:46bot-cgFile Added: reduce-motion-frames-small.png
2026-11-05 23:46bot-cgNote Added: 0030289
2026-11-19 08:48Christian GrothoffStatusplanning => implementing