In Swift, I have a a variable that I use to keep track of tabs:
enum Tab: Hashable { case snapit case saveit case trackit case finit } @State