Post

Replies

Boosts

Views

Activity

Reply to SwiftUI NavigationStack navigation bar title animation bug
Can confirm on iOS 16.2 & 16.4. Sometimes the animation works on the first time but never after the first. To reproduce this bug, I needed to show a List inside the NavigationStack. Didn't tried it out with other Views. Downloading Here is the simplest code, with which I managed to reproduce this behaviour: import SwiftUI import PlaygroundSupport struct ChildView: View { var body: some View { Text("Hello World") .navigationTitle("ChildView") .navigationBarTitleDisplayMode(.inline) } } struct ParentView: View { var body: some View { NavigationStack { List { NavigationLink(destination: ChildView()) { Text("Link") } Text("Text") } .navigationTitle("ParentView") .navigationBarTitleDisplayMode(.large) } } } PlaygroundPage.current.setLiveView(ParentView())
Jun ’23