<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapView/CameraBoundary-swift.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMapCameraBoundary"
  },
  "title" : "MKMapView.CameraBoundary"
}
-->

# MKMapView.CameraBoundary

A boundary of an area within which the map’s center needs to remain.

```
class CameraBoundary
```

## Overview

The constraints of the camera boundary restrict the center point of your map.

## Topics

### Creating a camera boundary

[`-  initWithCoder:`](/documentation/MapKit/MKMapView/CameraBoundary-swift.class/init(coder:))

Creates a camera boundary using the provided coder.

[`-  initWithCoordinateRegion:`](/documentation/MapKit/MKMapView/CameraBoundary-swift.class/init(coordinateRegion:))

Creates a camera boundary using the provided coordinate region.

[`-  initWithMapRect:`](/documentation/MapKit/MKMapView/CameraBoundary-swift.class/init(mapRect:))

Creates a camera boundary using the provided map rectangle.

### Accessing the boundary

[`mapRect`](/documentation/MapKit/MKMapView/CameraBoundary-swift.class/mapRect)

The map rectangle that describes the camera boundary.

[`region`](/documentation/MapKit/MKMapView/CameraBoundary-swift.class/region)

The coordinate region that describes the camera boundary.

## Relationships

### Conforms To

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

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

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

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

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

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### 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)