Two modifications here:
- Remove the
startingsuffix as it only really pertains to the first argument. - Rename the queue label to
onto reduce the ambiguity from using two label with the same name (to).
- public func queryActivityStarting(from start: Date, to end: Date, to queue: OperationQueue, withHandler handler: CoreMotion.CMMotionActivityQueryHandler)