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

# init(photoLibrary:)

## Declaration

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

## Parameters

- `photoLibrary`: The photo library in which the shared album will be created.
