Contents

numberOfLoops

The number of times the track’s loop repeats.

Declaration

var numberOfLoops: Int { get set }

Discussion

Use the value AVMusicTrackLoopCount.forever to loop the track forever. Otherwise, valid values start at 1.

See Also

Configuring the Looping State