Commit c403769
refactor(ios): consolidate MainActor.run blocks to prevent transient UI states
Merge the two separate MainActor.run calls per progressStream iteration
into a single call inside a switch statement. This prevents a brief
intermediate render frame where stale values flash before the terminal
state handler overrides them.
Also resets downloadStage in the .completed path for parity with .failed
and catch handlers.1 parent 71a3156 commit c403769
2 files changed
Lines changed: 10 additions & 14 deletions
File tree
- examples/ios/RunAnywhereAI/RunAnywhereAI/Features/Models
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | 359 | | |
367 | 360 | | |
368 | 361 | | |
369 | 362 | | |
370 | 363 | | |
| 364 | + | |
371 | 365 | | |
372 | 366 | | |
373 | 367 | | |
| |||
381 | 375 | | |
382 | 376 | | |
383 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
384 | 382 | | |
385 | 383 | | |
386 | 384 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | 360 | | |
368 | 361 | | |
369 | 362 | | |
370 | 363 | | |
371 | 364 | | |
| 365 | + | |
372 | 366 | | |
373 | 367 | | |
374 | 368 | | |
| |||
382 | 376 | | |
383 | 377 | | |
384 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
385 | 383 | | |
386 | 384 | | |
387 | 385 | | |
| |||
0 commit comments