<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerLayer/videoRect",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerLayer(py)videoRect"
  },
  "title" : "videoRect"
}
-->

# videoRect

The current size and position of the video image that displays within the layer’s bounds.

```
var videoRect: CGRect { get }
```

## Discussion

The size and position of a rectangle depends on the aspect ratio of the media (16:9 or 4:3), the layer’s <doc://com.apple.documentation/documentation/QuartzCore/CALayer/bounds>, and the value of its [`videoGravity`](/documentation/AVFoundation/AVPlayerLayer/videoGravity) property.

This property is key-value observable.

---

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)