Why Apple has these two APIs:
navigationBar is iOS/iPad only and toolbar works on macOS (as well as both iOS/iPad). toolbar in SwiftUI is the way to go forward as navigationBar is being deprecated and toolbar works for all target development.