<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKStoreProductViewControllerDelegate/productViewControllerDidFinish(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SKStoreProductViewControllerDelegate(im)productViewControllerDidFinish:"
  },
  "title" : "productViewControllerDidFinish(_:)"
}
-->

# productViewControllerDidFinish(_:)

Called when the user dismisses the store screen.

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

## Parameters

`viewController`

The store view controller whose interface was dismissed by the user.

## Discussion

Your delegate should call the <doc://com.apple.documentation/documentation/UIKit/UIViewController/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

  [In-App Purchase Programming Guide](https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Introduction.html#//apple_ref/doc/uid/TP40008267)



---

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)