---
title: repeat
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/graphicscontext/gradientoptions/repeat
---

# repeat

An option that repeats the gradient outside its nominal range.

## Declaration

```swift
static var `repeat`: GraphicsContext.GradientOptions { get }
```

## Discussion

Discussion Use this option to cause the gradient to repeat its pattern in areas that exceed the bounds of its start and end points. The repetitions use the same start and end value for each repetition. Without this option or mirror, the gradient stops at the end of its range. The mirror option takes precendence if you set both this one and that one.

## See Also

### Getting gradient options

- [linearColor](swiftui/graphicscontext/gradientoptions/linearcolor.md)
- [mirror](swiftui/graphicscontext/gradientoptions/mirror.md)
