A common pattern (for me at least) in iOS 13 was to set navigation bar titles on subviews:
According to the documentation, this is now deprecated (https://developer.apple.com/documentation/swiftui/group/navigationbartitle(_:)-w0qq )
I couldn't find any other documentation on what the recommended way to set the navigation bar title now is. Can anybody point me in the right direction?
Code Block swift struct FlavorView: View { let items = ["Chocolate", "Vanilla", "Strawberry", "Mint Chip", "Pistachio"] var body: some View { NavigationView { List(items, id: \.self) { Text($0) } .navigationBarTitle(Text("Today's Flavors")) } } }
According to the documentation, this is now deprecated (https://developer.apple.com/documentation/swiftui/group/navigationbartitle(_:)-w0qq )
I couldn't find any other documentation on what the recommended way to set the navigation bar title now is. Can anybody point me in the right direction?