In my code I am attempting to set two variables in an .onAppear() modifier. The code appears to go into an infinite loop calling the .onAppear() modifier over and over again