Labels in toolbar menu get wrapped when upgrading from iOS 18 to 26

When upgrading an app from iOS 18 to iOS 26,
some labels in a toolbar menu get wrapped unexpectedly.

The issue can be reproduced through the sample below,
which contains this label : "Envoyer une réaction"

On iPhone with iOS 18, the label is displayed on 1 line.
But on iPhone with iOS 26, the label is displayed on 2 lines.

No improvement was obtained through these modifiers :
.lineLimit, .frame and .fixedSize
.
.
How to avoid this unnecessary label wrapping that disrupts the readability ?
.
.

import SwiftUI


struct SampleView: View {
    
    var body: some View {
        
        NavigationStack {
            
            Color.clear
            
                .toolbar {
                    
                    ToolbarItem {
                        
                        Menu {
                            
                            Button(action: {}) {
                                
                                Label("Envoyer une réaction", systemImage: "envelope")
                            }
                            
                        }  label: {
                            
                            Image(systemName: "ellipsis")
                        }
                    }
                }
        }
    }
}


#Preview {
    
    SampleView()
}
Answered by DTS Engineer in 895831022

Hello @1066,

Thank you for your post.

In iOS 26, this is controlled by the system, however, in the 27 releases, SwiftUI introduces new toolbar APIs to control how these items are displayed as your app resizes.

Check out the WWDC26 What’s new in SwiftUI session for more new updates which might relevant to your project.

 Travis

Hello @1066,

Thank you for your post.

In iOS 26, this is controlled by the system, however, in the 27 releases, SwiftUI introduces new toolbar APIs to control how these items are displayed as your app resizes.

Check out the WWDC26 What’s new in SwiftUI session for more new updates which might relevant to your project.

 Travis

Hello @DTS Engineer,
.
.
Thank you for your post !
.
.
I have looked at the new toolbar API and other updates of iOS 27,
but I do not see how it could help to solve the issue.
.
.
Let me clarify how the issue can be reproduced :

  1. Execute the provided sample code in the XCode preview canvas.
  2. Select iPhone 16 (with iOS 18) or iPhone 17 (with iOS 26).
  3. Tap the "ellipsis" button in the toolbar to open the menu.
  4. The label in the menu is displayed on 1 line with iOS 18, but 2 lines with iOS 26.

.
.
How to slightly increase the width of the menu,
to avoid this unnecessary label wrapping that disrupts the readability ?

Labels in toolbar menu get wrapped when upgrading from iOS 18 to 26
 
 
Q