---
title: "initWithPhotoLibrary:"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phpickerconfiguration-c.class/initwithphotolibrary:"
---

# initWithPhotoLibrary:

Creates a new configuration object for a photo library.

## Declaration

```occ
- (instancetype) initWithPhotoLibrary:(PHPhotoLibrary *) photoLibrary;
```

## Parameters

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

## See Also

### Creating a configuration

- [init](photosui/phpickerconfiguration-c.class/init.md)
