Skip to content

FB22000213: Segmented picker in toolbar animates icons from scale 0→1 when toolbar changes color scheme #777

@samhenrigold

Description

@samhenrigold

Submission Date

2026-02-19

Status

Open

Area

SwiftUI

Operating System Version

iOS 26.3

Type

Incorrect/Unexpected Behavior

Description

When a segmented Picker with image-based Labels is placed in a toolbar, scrolling through the soft scroll edge effect color boundary causes the picker's icons to animate from scale 0→1 on every transition.

Repro steps:

  • Place a ScrollView with different colored content inside a navigation container
  • Add a segmented Picker with images to the toolbar
  • Scroll through the color boundary

Expected: Icons remain stable while scrolling
Observed: Icons animate from scale 0→1 on every transition between light and dark

Notes:

  • Does not reproduce with .labelStyle(.titleOnly) — text content is unaffected
  • Does not reproduce with a hard scroll edge effect, but only because the hard edge doesn’t alternate color schemes
  • SwiftUI animation modifiers have no effect.

The workaround I discovered was to wrap a segmented control in UIViewRepresentable and call UIView.performWithoutAnimation { view.layoutIfNeeded() } inside registerForTraitChanges([UITraitUserInterfaceStyle.self])

CleanShot.2026-02-19.at.21.36.48.mp4
CleanShot.2026-02-19.at.21.53.10.mp4
CleanShot.2026-02-19.at.22.15.59.mp4

toolbar-picker-bug.tar.gz

Keywords

No response

Prerequisites

  • The title follows the format FB<number>: <title>
  • I will keep this issue updated with Apple's responses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions