Skip to content

[UI Bug] Navigation Title Flicker on ImagenScreen in firebaseai #1718

Open
@YoungHypo

Description

@YoungHypo

Issue Description

In firebaseai, when navigating from the main screen to the Imagen example, the navigation title shows a noticeable visual jump: it initially appears in the top bar using the .inline mode, then suddenly shifts into .large mode. This flicker does not occur in other example pages.

Expected Behavior

The navigation title should maintain a consistent display mode across all screens upon loading.

Technical Analysis

The issue may come from a layout difference in ImagenScreen compared to other pages: it uses a ZStack nested within a VStack, and includes a dynamicLazyVGrid, which triggers a second rendering of the title.

Possible Solutions

  • Explicitly set the title display mode: .navigationBarTitleDisplayMode(.large) still has no effect unless set to .inline.
  • Refactor the UI layout: wrap both the InputField and LazyVGrid within a single ScrollView.

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