Post

Replies

Boosts

Views

Activity

Reply to How to convert NavigationLink tag and selection to value?
You can also use the simultaneousGesture feature to select your workout type and replace the deprecated tag/selection. With your code as example, something like this will do the trick. List(workoutTypes) { workoutType in NavigationLink( workoutType.name, destination: SessionPagingView() ) .simultaneousGesture(TapGesture().onEnded { workoutManager.selectedWorkout = workoutType } }
Mar ’23