Creates an action that repeats another action a specified number of times.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The action to execute.
The number of times to execute the action.
A new action object.
When the action executes, the associated action runs to completion and then repeats, until the count is reached.
This action is reversible; it creates a new action that is the reverse of the specified action and then repeats it the same number of times.