Thank you! This approach does a good job of storing the workoutType variable (using the 'tag' class that is deprecated), but I'd also like to store the selected workout as an environment object (similar to the deprecated 'selection' class approach).
What is the best way to pass 2 stored values, one of which is an environment object?
@EnvironmentObject var workoutManager: WorkoutManager
var workoutTypes: [HKWorkoutActivityType] = [.paddleSports, .sailing, .rowing, .swimming]
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: