How to place a ToolbarItem at the trailing edge?

I'm trying to place a toolbarItem on the trailing edge of the Toolbar (MacOS). I've gone thru the documentation, and found the following:

.automatic: item is placed in the center

.bottomBar: N/A for MacOS

.cancellationAction: relevant for sheets

.confirmationAction: relevant for sheets

.destructiveAction: relevant for sheets

.keyboard: item placed in the Touch Bar

.navigation: items placed in the leading edge of the toolbar ahead of the inline title if that is present in the toolbar.

.navigationBarLeading: N/A

.navigationBarTrailing: N/A

.primaryAction: placed at the leading edge of toolbar

.principal: placed in the center of the toolbar

.status: placed in the center of the toolbar

In essence, none of these places my item in the trailing edge of the toolbar. You guys have any ideas of how to overcome this?


It worked for me using macOS with the right-aligned ToolBar.

I simply used a Spacer before defining the ToolBar elements. In the example below with the "plus" button.

enter image description here

.toolbar(content: {
    
    Spacer() // the Spacer pushes to the right side of the toolbar area.

    Button {
        showingSheet = true
    } label: {
        Image(systemName: "plus")
    }
    .sheet(isPresented: $showingSheet, onDismiss: callbackOption, content: {
        // any code view                
    })            
})