iOS 17β SwiftUI: Differences in BottomBar Button Layout Between iOS 16 and Earlier, and iOS 17

The layout of buttons placed in the bottomBar of the iOS 17β SwiftUI toolbar is different from that in iOS 16 and earlier versions.

When I run the following code in Xcode 15 β3 (15A5195k) and the iOS 17β Simulator, all the buttons on the BottomBar are aligned to the left.

In environments including iOS 17β and earlier versions of iOS 16 with Xcode 14.3.1 (14E300c), only the last button is aligned to the right, while the other buttons are aligned to the left.

Is this a specification change in iOS 17, or is it a bug in iOS 17β?

import SwiftUI

@main
struct ToolBarSampleiOS17BApp: App {
    var body: some Scene {
        WindowGroup {
            NavigationView {
                ContentView()
            }
            .navigationViewStyle(.stack)
        }
    }
}

struct ContentView: View {
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
            Text("iOS 17")
        }
        .toolbar {
            ToolbarItemGroup(placement:.bottomBar) {
                Button("A") { }
                Button("B") { }
                Button("C") { }
                Button("D") { }
                Button("E") { }
            }
        }
        .padding()
    }
}

Xcode 15 β3 (15A5195k) and the iOS 17β Simulator

earlier versions of iOS 16

I've posted FB12586646

iOS 17β SwiftUI: Differences in BottomBar Button Layout Between iOS 16 and Earlier, and iOS 17
 
 
Q