<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoSettings/init(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoSettings(cm)photoSettingsFromPhotoSettings:"
  },
  "title" : "init(from:)"
}
-->

# init(from:)

Creates a unique photo settings object, copying all settings values from the specified photo settings object.

```
convenience init(from photoSettings: AVCapturePhotoSettings)
```

## Parameters

`photoSettings`

The photo settings object from which to copy settings.

## Return Value

A new photo settings object.

## Discussion

It is illegal to reuse a [`AVCapturePhotoSettings`](/documentation/AVFoundation/AVCapturePhotoSettings) instance for multiple captures. Calling the [`capturePhoto(with:delegate:)`](/documentation/AVFoundation/AVCapturePhotoOutput/capturePhoto(with:delegate:)) method throws an exception if the [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) value of the `settings` parameter matches that of any previously used settings object.

To reuse a specific combination of settings, use this initializer to create a new [`AVCapturePhotoSettings`](/documentation/AVFoundation/AVCapturePhotoSettings) instance from an existing photo settings object. The newly created instance has a new, unique value for its [`uniqueID`](/documentation/AVFoundation/AVCapturePhotoSettings/uniqueID) property, but copies the values for all other properties from the `photoSettings` parameter.

---

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)