'How to set back button to be consistent for both vertical and horizontal stack view?

I have a side navigation view using NavigationView with side bar menu. In Portrait mode, I have a back button with the title "Menu". In Landscape mode, I have a menu icon. How do I keep the UX consistent for both platforms to show the menu icon? (attached)

NavigationView {

}
   .listStyle(.sidebar)
   .navigationTitle("Menu")

Menu Back Button

Menu Back Button

Menu Icon Button

Menu Icon Button



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source