---
title: usesStrongWriteBarrier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nspointerfunctions/usesstrongwritebarrier
---

# usesStrongWriteBarrier

Specifies whether, in a garbage collected environment, pointers should be assigned using a strong write barrier.

## Declaration

```swift
var usesStrongWriteBarrier: Bool { get set }
```

## Discussion

Discussion If you use garbage collection, read and write barrier functions must be used when pointers are from memory scanned by the collector.

## See Also

### Memory Configuration

- [acquireFunction](foundation/nspointerfunctions/acquirefunction.md)
- [relinquishFunction](foundation/nspointerfunctions/relinquishfunction.md)
- [usesWeakReadAndWriteBarriers](foundation/nspointerfunctions/usesweakreadandwritebarriers.md)
