<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapTemplate/PanDirection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:@E@CPPanDirection"
  },
  "title" : "CPMapTemplate.PanDirection"
}
-->

# CPMapTemplate.PanDirection

The directions a user can pan (or move) a map displayed on the CarPlay screen.

```
struct PanDirection
```

## Topics

### Pan Directions

[`CPPanDirectionNone`](/documentation/CarPlay/CPPanDirection/CPPanDirectionNone)

[`static var down: CPMapTemplate.PanDirection`](/documentation/CarPlay/CPMapTemplate/PanDirection/down)

The user panned the map downward.

[`static var left: CPMapTemplate.PanDirection`](/documentation/CarPlay/CPMapTemplate/PanDirection/left)

The user panned the map to the left.

[`static var right: CPMapTemplate.PanDirection`](/documentation/CarPlay/CPMapTemplate/PanDirection/right)

The user panned the map to the right.

[`static var up: CPMapTemplate.PanDirection`](/documentation/CarPlay/CPMapTemplate/PanDirection/up)

The user panned the map upward.

### Initializers

[`init(rawValue: Int)`](/documentation/CarPlay/CPMapTemplate/PanDirection/init(rawValue:))

Initializes a pan direction using the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)