<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MapCameraPosition",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A14CameraPositionV"
  },
  "title" : "MapCameraPosition"
}
-->

# MapCameraPosition

A structure that describes how to position the map’s camera within the map.

```
struct MapCameraPosition
```

## Overview

`MapCameraPosition` contains a variety of properties that you can use to control the semantic framings of the camera in relation to its position to the map, such as [`automatic`](/documentation/MapKit/MapCameraPosition/automatic), which frames the content of the map, and the [`camera`](/documentation/MapKit/MapCameraPosition/camera) property, which allows you to specify an explicit camera position.

When you pass `MapCameraPosition` as a binding to a map, the map adjusts its camera to frame the requested content, or to exactly match the camera `MapCameraPosition` specifies. If a person interacts with the [`Map`](/documentation/MapKit/Map) in a way that moves the map, the map resets the position to a value that specifies [`positionedByUser`](/documentation/MapKit/MapCameraPosition/positionedByUser).

## Topics

### Creating a camera position

[`camera(_:)`](/documentation/MapKit/MapCameraPosition/camera(_:))

Creates a new camera position from an existing map camera you provide.

[`item(_:allowsAutomaticPitch:)`](/documentation/MapKit/MapCameraPosition/item(_:allowsAutomaticPitch:))

Creates a new camera position centered on a map item and automatic pitch selection you provide.

[`rect(_:)`](/documentation/MapKit/MapCameraPosition/rect(_:))

Creates a new camera position with the map boundaries you provide.

[`region(_:)`](/documentation/MapKit/MapCameraPosition/region(_:))

Creates a new camera position the coordinate region you provide.

[`userLocation(followsHeading:fallback:)`](/documentation/MapKit/MapCameraPosition/userLocation(followsHeading:fallback:))

Creates a camera position with the specific fallback position and optionally follows the user’s heading.

### Information about camera position and framing

[`automatic`](/documentation/MapKit/MapCameraPosition/automatic)

The position that frames the map’s content.

[`allowsAutomaticPitch`](/documentation/MapKit/MapCameraPosition/allowsAutomaticPitch)

The setting that allows the map’s camera to automatically set the pitch when framing the item.

[`camera`](/documentation/MapKit/MapCameraPosition/camera)

A map camera that defines the camera positioning.

[`fallbackPosition`](/documentation/MapKit/MapCameraPosition/fallbackPosition)

The position to use if the framework hasn’t resolved the person’s location.

[`item`](/documentation/MapKit/MapCameraPosition/item)

The item the map is framing.

[`positionedByUser`](/documentation/MapKit/MapCameraPosition/positionedByUser)

A Boolean value that indicates whether the person specified the camera position by interacting with the map.

[`rect`](/documentation/MapKit/MapCameraPosition/rect)

The position that frames the given map rectangle.

[`region`](/documentation/MapKit/MapCameraPosition/region)

The coordinate region to frame.

### Accessing information about someone’s location

[`followsUserHeading`](/documentation/MapKit/MapCameraPosition/followsUserHeading)

A Boolean value that indicates whether the map is following someone’s heading.

[`followsUserLocation`](/documentation/MapKit/MapCameraPosition/followsUserLocation)

A Boolean value that indicates whether the map is following someone’s location.

## Relationships

### Conforms To

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

---

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)