<!--
{
  "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/storeOverlayWillStartDismissal(_:transitionContext:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(pl)SKOverlayDelegate(im)storeOverlay:willStartDismissal:"
  },
  "title" : "storeOverlayWillStartDismissal(_:transitionContext:)"
}
-->

# storeOverlayWillStartDismissal(_:transitionContext:)

Indicates that the platform dismisses an overlay.

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

## Parameters

`overlay`

An overlay object that’s about to disappear.

`transitionContext`

The context you can use to animate changes to UI components when the overlay disappears.

## 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> appear by animating the change of its opacity to 100%`,` as shown in the following code:

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

---

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)