A block that reports the number of steps recorded since updates began.
- iOS 7.0+
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- Core Motion
This block takes the following parameters:
The total number of steps since the
startmethod was called.
Step Counting Updates(to: update On: with Handler:)
The time at which the current step count was reported.
An error object indicating that there was a problem gathering the data or
nilif the number of steps was determined correctly.