<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKOverlayDelegate/storeOverlayWillStartPresentation(_:transitionContext:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SKOverlayDelegate(im)storeOverlay:willStartPresentation:"
  },
  "title" : "storeOverlayWillStartPresentation(_:transitionContext:)"
}
-->

# storeOverlayWillStartPresentation(_:transitionContext:)

Indicates that the platform presents an overlay.

```
optional func storeOverlayWillStartPresentation(_ overlay: SKOverlay, transitionContext: SKOverlay.TransitionContext)
```

## Parameters

`overlay`

An overlay object that’s about to appear.

`transitionContext`

A context you can use to animate changes to UI components as the overlay appears.

## Discussion

Use the `transitionContext` parameter to animate updates to the UI on the main thread. For example, make a <doc://com.apple.documentation/documentation/UIKit/UIImageView> disappear by animating the change of its opacity to 0% as shown in the following code:

```swift
func storeOverlayWillStartPresentation(_ overlay: SKOverlay, transitionContext: SKOverlay.TransitionContext) {
    transitionContext.addAnimation { [self] in
        self.imageView.layer.opacity = 0
    }
}
```

---

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)