---
title: "init(photoLibrary:)"
framework: photosui
role: symbol
role_heading: Initializer
path: "photosui/phpickerconfiguration-swift.struct/init(photolibrary:)"
---

# init(photoLibrary:)

Creates a new configuration object for a photo library.

## Declaration

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

## Parameters

- `photoLibrary`: The library from which to pick photos and videos.

## See Also

### Creating a configuration

- [init()](photosui/phpickerconfiguration-swift.struct/init().md)
