---
title: fence
framework: MetalFX
role: symbol
role_heading: Instance Property
platforms: [iOS 10.0+, iPadOS 10.0+, Mac Catalyst 10.0+, macOS 10.13+, tvOS 27.1+, visionOS 1.0+]
path: metalfx/mtlfxspatialscalerbase/fence
---

# fence

An optional fence that you provide to synchronize your app’s untracked resources.

## Declaration

```swift
var fence: (any MTLFence)? { get set }
```
