---
title: "withUnsafeBackingIOSurfaceIfPresent(_:)"
framework: corevideo
role: symbol
role_heading: Instance Method
path: "corevideo/cvpixelbufferrepresentable/withunsafebackingiosurfaceifpresent(_:)"
---

# withUnsafeBackingIOSurfaceIfPresent(_:)

Access the IOSurface backing the pixel buffer if present.

## Declaration

```swift
func withUnsafeBackingIOSurfaceIfPresent<R>(_ block: (IOSurface) throws -> sending R) rethrows -> sending R?
```
