<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHPickerConfiguration-swift.struct/init(photoLibrary:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "s:8PhotosUI21PHPickerConfigurationV12photoLibraryACSo07PHPhotoF0C_tcfc"
  },
  "title" : "init(photoLibrary:)"
}
-->

# init(photoLibrary:)

Creates a new configuration object for a photo library.

```
init(photoLibrary: PHPhotoLibrary)
```

## Parameters

`photoLibrary`

The library from which to pick photos and videos.

## Discussion

---

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)