<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/eightfoldReflectedTile()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)eightfoldReflectedTileFilter"
  },
  "title" : "eightfoldReflectedTile()"
}
-->

# eightfoldReflectedTile()

Creates an eight-way reflected pattern.

```
class func eightfoldReflectedTile() -> any CIFilter & CIEightfoldReflectedTile
```

## Return Value

The tiled image.

## Discussion

This method applies the eight-fold reflected tile filter to an image. The effect creates an eight-way symmetry from the input image and tiles it to create the output image.

The eight-fold reflected tile filter uses the following properties:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).
- `center`: A set of coordinates marking the center of the image as a <doc://com.apple.documentation/documentation/CoreFoundation/CGPoint>.
- `angle`: A `float` representing the direction of distortion, in radians as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `width`: A `float` representing the set width of each tile as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.

The following code creates a filter that results in small symmetrical repeated tiles:

```swift
func eightFoldReflected(inputImage: CIImage) -> CIImage {
    let eightFoldReflectedTile = CIFilter.eightfoldReflectedTile()
    eightFoldReflectedTile.inputImage = inputImage
    eightFoldReflectedTile.center = CGPoint(x: inputImage.extent.midX, y: inputImage.extent.midY)
    eightFoldReflectedTile.width = 400
    eightFoldReflectedTile.angle = 1
    return eightFoldReflectedTile.outputImage!
}
```

![A bouquet of multiple colorful flowers photographed up close with good lighting and focus. In the photo on the right, an eight-fold reflected tile filter is applied resulting in a square pattern that is repeated throughout the image.](images/com.apple.coreimage/media-4333630@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)