---
title: "setLoops(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacemovie/setloops(_:)"
---

# setLoops(_:)

Sets a Boolean value indicating whether the movie plays in a continuous loop.

## Declaration

```swift
func setLoops(_ loops: Bool)
```

## Parameters

- `loops`: A Boolean value indicating the looping behavior. Specify doc://com.apple.documentation/documentation/Swift/true to play the movie in a continuous loop or doc://com.apple.documentation/documentation/Swift/false to play the movie once and then stop playback.

## See Also

### Setting the Movie Attributes

- [setMovieURL(_:)](watchkit/wkinterfacemovie/setmovieurl(_:).md)
- [setVideoGravity(_:)](watchkit/wkinterfacemovie/setvideogravity(_:).md)
- [setPosterImage(_:)](watchkit/wkinterfacemovie/setposterimage(_:).md)
