<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "tvOS: -",
    "visionOS: 27.3.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotosUI",
  "identifier" : "/documentation/PhotosUI/PHPickerAspectRatio-c.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(cs)PHPickerAspectRatio"
  },
  "title" : "PHPickerAspectRatio"
}
-->

# PHPickerAspectRatio

An aspect ratio for the items that \c PHPickerViewController shows.

```
@interface PHPickerAspectRatio : NSObject
```

## Topics

### Instance Methods

[`- (instancetype) initWithAspectRatio:(CGFloat) aspectRatio;`](/documentation/PhotosUI/PHPickerAspectRatio-c.class/initWithAspectRatio:)

Creates a custom aspect ratio (width / height).

### Type Properties

[`@property (class, nonatomic, readonly) PHPickerAspectRatio * deviceAspectRatio;`](/documentation/PhotosUI/PHPickerAspectRatio-c.class/deviceAspectRatio)

Aspect ratio based on the device.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

---

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)