How are you setting the title? I tried to reproduce, but getting a different behaviour.
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationStack {
Text("View")
.navigationTitle("BYRON'S GRILLED CHEESE EMPORIUM")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Text("Cancel Order")
}
}
}
}
}
Which looks like this:
And if I remove the .navigationTitle it looks like this:
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
This seems to be fixed now, however I've noticed that the view doesn't transition properly between large and inline unless the content is a certain width. Is this documented anywhere?
For the above example if you scroll up, you will get this:
But if you change it slightly, and add the following to the Text
.frame(maxWidth: .infinity)
It works properly:
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
How are you setting the title? I tried to reproduce, but getting a different behaviour.
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationStack {
Text("View")
.navigationTitle("BYRON'S GRILLED CHEESE EMPORIUM")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Text("Cancel Order")
}
}
}
}
}
Which looks like this:
And if I remove the .navigationTitle it looks like this:
- Replies
- Boosts
- Views
- Activity
This seems to be fixed now, however I've noticed that the view doesn't transition properly between large and inline unless the content is a certain width. Is this documented anywhere?
For the above example if you scroll up, you will get this:
But if you change it slightly, and add the following to the Text
.frame(maxWidth: .infinity)
It works properly:
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
- Replies
- Boosts
- Views
- Activity