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()
}
0
0
5