I have code that enables me to change views programatically using buttons by making use of
TabView(selection: $VM.selectedPage) { ViewOne() .tag(0) ... }