Page MenuHomePhabricator

[iOS] Animation Logic for YIR
Open, HighPublic3 Estimated Story Points

Description

Bug

Animation should reset and play from the beginning each time users land on a slide. (This should cover cases for when people revisit a page)

Root cause

The slide pager uses a LazyVStack. It builds the next slide before the reader swipes to it. Rive continues to advance an off-screen view until the animation settles. So the intro of the next slide played off-screen, and the reader saw only its end state.

When the reader went back to an earlier slide, a slide that the pager kept in memory stayed on its last frame. A slide that the pager removed played again. Which slides stayed in memory depended on the scroll, so the slides that did not play again changed from test to test.

Fix:

  • Only the current slide plays. All other slides stay on their first frame (WMFRiveView(isPlaying:)).
  • When a slide stops being the current slide, the app makes a new state machine for it while it is off-screen. The current animation stays on screen until the new one is ready, so the slide does not go blank.

Event Timeline

HNordeenWMF triaged this task as Medium priority.Oct 7 2026, 4:10 PM
HNordeenWMF moved this task from Team Triage to P2 (Needs refinement) on the App Experience board.
HNordeenWMF raised the priority of this task from Medium to High.Fri, Oct 9, 9:47 PM

@MCrichton-WMF was this on both platforms? iOS & Android?

I can confirm it is happening on IOS. I don't have access to Android testing device, but I believe it is an issue on both according to Sneha, who is also helping us test on both devices.

Seddon renamed this task from Animation Logic for YIR to [iOS] Animation Logic for YIR.Tue, Oct 13, 5:40 PM

Split by platform. This task now covers iOS; sibling tasks: T441018: [Android] Animation Logic for YIR (Android).

Mazevedo subscribed.

@HNordeenWMF I moved this one into the sprint since it made sense to work on it when fixing T441488

Mazevedo set the point value for this task to 3.

Test notes

TestFlight Wikipedia Alpha 2026.10.20 (1908)

  1. Read 3 or more articles. Developer settings → Regenerate Year in Review 2026 Report.
  2. Profile → YIR 2026 Test. Look at the total articles slide while it loads.
  3. Expected: the glyphs show on 1 line, one glyph for each character of the number, and the number appears in the same place.
  4. Swipe to each slide, one at a time, to the last slide.
  5. Expected: each slide animates after you swipe to it. No slide shows only its end state.
  6. Swipe back to the first slide, one slide at a time.
  7. Expected: each slide animates again. No slide goes blank or flashes.
  8. Close Year in Review and open the announcement again (it opens on launch).
  9. Expected: the title glyphs line up with the title.

TestFlight Wikipedia Experimental 2026.10.20 (1900)

  1. Large hero numbers:
  2. Expected: the first 6 slides (frame1, 2, 3, 4, 16, 17) show "1,234,567". On each one, the glyphs use 1 line at the same size as the number, and the number appears in the same place. On main the glyphs used 2 lines over the body copy.
ABorbaWMF subscribed.

Appears to be fixed
Build: 6204-beta-2026-10-23
Tested on:
iPhone 16, iOS 26.6
iPad Air, iPadOS 26.6
iPhone SE, iOS 26.5.2