---
title: "init(items:defaultAlbumIdentifier:photoLibrary:)"
framework: photosui
role: symbol
role_heading: Initializer
path: "photosui/phsharedalbumpostingviewcontroller/init(items:defaultalbumidentifier:photolibrary:)"
---

# init(items:defaultAlbumIdentifier:photoLibrary:)

Returns a view controller that allows the user to create a new shared album.

## Declaration

```swift
@MainActor @preconcurrency convenience init(items: [PHPickerResult], defaultAlbumIdentifier: String?, photoLibrary: PHPhotoLibrary)
```

## Parameters

- `items`: The items to be posted to the shared album.
- `defaultAlbumIdentifier`: Identifier for the shared album to be pre-selected. If none provided, the user can manually choose a shared album.
- `photoLibrary`: The photo library to choose from.
