---
title: "sharedAlbumCustomizationViewController(_:didCompleteWithError:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phsharedalbumcustomizationviewcontroller/delegate-swift.protocol/sharedalbumcustomizationviewcontroller(_:didcompletewitherror:)"
---

# sharedAlbumCustomizationViewController(_:didCompleteWithError:)

## Declaration

```swift
func sharedAlbumCustomizationViewController(_ customizationViewController: PHSharedAlbumCustomizationViewController, didCompleteWithError error: (any Error)?)
```

## Discussion

Discussion Called when shared album customization completes. error will be nil if customization was successful and non-nil if it was unsuccessful. The view controller won’t be dismissed automatically when this method is called.
