<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP07_Photosb1_aB0E29photosSharedAlbumPostingSheet11isPresented5items07defaultG10Identifier12photoLibrary10completionQrAA7BindingVySbG_Say0dB014PHPickerResultVGSSSgSo07PHPhotoP0Cys0T0OySSs5Error_pGcSgtF::OverloadGroup"
  },
  "title" : "photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:)"
}
-->

# photosSharedAlbumPostingSheet(isPresented:items:defaultAlbumIdentifier:photoLibrary:completion:)

Presents an “Add to Shared Album” sheet that allows the user to post the given items to a shared album.

```
nonisolated func photosSharedAlbumPostingSheet(isPresented: Binding<Bool>, items: [PHPickerResult], defaultAlbumIdentifier: String? = nil, photoLibrary: PHPhotoLibrary, completion: ((Result<String, any Error>) -> Void)? = nil) -> some View
```

## Parameters

`isPresented`

The binding to whether the sheet should be shown.

`items`

The items to be posted to the shared album.

`defaultAlbumIdentifier`

Identifier for the shared album to be pre-selected. If none provided user can manually choose the shared album in UI.

`photoLibrary`

Library to choose from.

`completion`

Called with the result on completion of the request.

---

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)