---
title: "loadProduct(withParameters:completionBlock:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skstoreproductviewcontroller/loadproduct(withparameters:completionblock:)"
---

# 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 for keys that describe the product. See doc://com.apple.storekit/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:

## Mentioned in

Generating the signature to validate StoreKit-rendered ads Signing and providing ads

## Discussion

Discussion For a seamless user experience, load the product information before presenting the 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.

## See Also

### Loading a new product screen

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