---
title: delegate
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/skstoreproductviewcontroller/delegate
---

# delegate

The store view controller’s delegate.

## Declaration

```swift
weak var delegate: (any SKStoreProductViewControllerDelegate)? { get set }
```

## Discussion

Discussion Your application must set the delegate before presenting the store view controller.

## See Also

### Related Documentation

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

### Setting a delegate

- [SKStoreProductViewControllerDelegate](storekit/skstoreproductviewcontrollerdelegate.md)
