endCollection(withEnd:completion:)
Stops the collection of data, sets the workout’s end date, and deactivates the workout builder.
Declaration
func endCollection(withEnd endDate: Date, completion: @escaping @Sendable (Bool, (any Error)?) -> Void)func endCollection(at endDate: Date) async throws