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

# loadProduct(withParameters:completionBlock:)

Loads a new product screen to display.

```
func loadProduct(withParameters parameters: [String : Any], completionBlock block: ((Bool, (any Error)?) -> Void)? = nil)
```

## Parameters

`parameters`

A dictionary describing the content you want the view controller to display. See [Product Dictionary Keys](/documentation/StoreKit/product-dictionary-keys) for keys that describe the product. See [Ad network install-validation keys](/documentation/StoreKit/ad-network-install-validation-keys) for keys that describe an impression in an advertising campaign.

`block`

A block to be called when the product information has been loaded from the App Store. The completion block is called on the main thread and receives the following parameters:

- `result`: <doc://com.apple.documentation/documentation/Swift/true> if the product information was successfully loaded, otherwise <doc://com.apple.documentation/documentation/Swift/false>.
- `error`: If an error occurred, this object describes the error. If the product information was successfully loaded, this value is `nil`.

## Discussion

For a seamless user experience, load the product information before presenting the [`SKStoreProductViewController`](/documentation/StoreKit/SKStoreProductViewController) view controller. However, if you load the product information while presenting the view controller, once loaded, the product data replaces the contents of the view controller.

---

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)