I have a SwiftUI program that displays one of three views based on a selection from a list in a Navigation Pane. I am able to display an initial view programatically. At this point there is a border around the initialized selection in the Navigation Pane but it is dark grey. Once selected with the mouse the border turns blue and now I can move up and down the list with the arrow keys on the keyboard. Is there a way to programatically perform what ever the mouse is doing to change the background color to blue and thus allow me to move up and down the list with the arrow keys?
Below is the code.