<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImmersiveMediaSupport",
  "identifier" : "/documentation/ImmersiveMediaSupport/ShotFlipCommand",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Immersive Media Support"
    ],
    "preciseIdentifier" : "s:21ImmersiveMediaSupport15ShotFlipCommandV"
  },
  "title" : "ShotFlipCommand"
}
-->

# ShotFlipCommand

A command type to flip the video frames vertically during playback for the duration of the command.

```
struct ShotFlipCommand
```

## Overview> Note: The renderer only honors this command on visionOS 27, macOS 27, or later.
> Earlier runtimes ignore it during playback.

## Topics

### Initializers

[`init(from: any Decoder) throws`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/init(from:))

[`init(id: Int, time: CMTime, duration: CMTime, offset: CMTime?)`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/init(id:time:duration:offset:))

Creates a command instance for a certain time, duration and offset.

### Instance Properties

[`var duration: CMTime`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/duration)

The duration of the command.

[`var id: Int`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/id)

A unique command ID for the immersive media file.

[`var offset: CMTime?`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/offset)

The offset from the start time of this command.

[`var time: CMTime`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/time)

The time this command starts during playback.

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/ImmersiveMediaSupport/ShotFlipCommand/encode(to:))

## Relationships

### Conforms To

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

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

---

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)