---
title: "loadProduct(withParameters:completionBlock:)"
framework: StoreKit
role: symbol
role_heading: Instance Method
platforms: [iOS 6.0+, iPadOS 6.0+, Mac Catalyst 13.0+, macOS 11.0+]
path: storekit/skstoreproductviewcontroller/1620632-loadproduct
---

# loadProduct(withParameters:completionBlock:)

Loads a new product screen to display.

## Declaration

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

```swift
func loadProduct(withParameters parameters: [String : Any]) async throws -> Bool
```

## Parameters

- `parameters`: A dictionary describing the content you want the view controller to display. See [doc://com.apple.storekit/documentation/StoreKit/product-dictionary-keys](storekit/product-dictionary-keys.md) for keys that describe the product. See [doc://com.apple.storekit/documentation/StoreKit/ad-network-install-validation-keys](storekit/ad-network-install-validation-keys.md) 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:

## Discussion

For a seamless user experience, load the product information before presenting the [SKStoreProductViewController](../skstoreproductviewcontroller.md) 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.

## See Also

### Loading a new product screen

- [Offering media for sale in your app](../offering-media-for-sale-in-your-app.md)
- [loadProduct(withParameters:impression:completionBlock:)](loadproduct(withparameters:impression:completionblock:).md)
- [loadProduct(parameters:impression:)](loadproduct(parameters:impression:).md)
- [loadProduct(parameters:impression:reengagementURL:)](loadproduct(parameters:impression:reengagementurl:).md)
- [Product Dictionary Keys](../product-dictionary-keys.md)
