---
title: "productViewControllerDidFinish(_:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skstoreproductviewcontrollerdelegate/productviewcontrollerdidfinish(_:)"
---

# productViewControllerDidFinish(_:)

Called when the user dismisses the store screen.

## Declaration

```swift
optional func productViewControllerDidFinish(_ viewController: SKStoreProductViewController)
```

## Parameters

- `viewController`: The store view controller whose interface was dismissed by the user.

## Discussion

Discussion Your delegate should call the dismissModalViewControllerAnimated: method on the view controller that originally presented the store screen. If your app paused any other activities before presenting the store, it can restart those services in this method.

## See Also

### Related Documentation

- [In-App Purchase Programming Guide](apple-archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction.html.md)
