HomeiOS DevelopmentNavigationBar title is now not centered when compiled with Xcode 26

NavigationBar title is now not centered when compiled with Xcode 26


After compiling an App with Xcode 26 that navigation Bar title is now not vertically centered within the NavigationBar however aligned to the highest. How can we stop this?

Is that this meant behaviour or an Xcode bug?
We are able to reproduce this on numerous gadgets with/with out notch/dynamic island, on completely different iOS variations.

var physique: some View {
    NavigationStack{
        HStack{
            Spacer()
            VStack{
                Spacer()
                Textual content("VStack-Content material")
                Spacer()
                    .navigationTitle("NavigationTitle")
                    .navigationBarTitleDisplayMode(.inline)
            }
            Spacer()
        }
        .background(Shade.inexperienced)
    }

NavigationBar title is now not centered when compiled with Xcode 26

Edit: Extra Statement, after leaving the app and opening once more from background the navigationBar then is appropriately aligned.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments