<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKOverlay/TransitionContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKOverlayTransitionContext"
  },
  "title" : "SKOverlay.TransitionContext"
}
-->

# SKOverlay.TransitionContext

A context object you can use to animate UI changes while the platform presents or dismisses an overlay.

```
class TransitionContext
```

## Overview

For more information on animating UI changes while the system presents or dismisses an overlay, see [`storeOverlayWillStartPresentation(_:transitionContext:)`](/documentation/StoreKit/SKOverlayDelegate/storeOverlayWillStartPresentation(_:transitionContext:)) and [`storeOverlayWillStartDismissal(_:transitionContext:)`](/documentation/StoreKit/SKOverlayDelegate/storeOverlayWillStartDismissal(_:transitionContext:)).

## Topics

### Adding an Animation

[`-  addAnimationBlock:`](/documentation/StoreKit/SKOverlay/TransitionContext/addAnimation(_:))

Adds a closure you can use to animate view properties.

[`startFrame`](/documentation/StoreKit/SKOverlay/TransitionContext/startFrame)

The size and location of the overlay before the transition.

[`endFrame`](/documentation/StoreKit/SKOverlay/TransitionContext/endFrame)

The size and location of the overlay at the end of the transition.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)