<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/Map/init(bounds:interactionModes:selection:scope:content:)-28wns",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MapKit",
      "SwiftUI",
      "_MapKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A0V6bounds16interactionModes9selection5scope7contentACyAA0A11ContentViewVyAA0A7FeatureVqd__GGAA0A12CameraBoundsVSg_AA0a11InteractionG0V0cD07BindingVyALSgGAT9NamespaceV2IDVSgqd__yXEtcAMRszAA0aK0Rd__lufc"
  },
  "title" : "init(bounds:interactionModes:selection:scope:content:)"
}
-->

# init(bounds:interactionModes:selection:scope:content:)

Creates a new map with the bounds, interaction modes, selected map feature, scope, and map content you provide.

```
@MainActor @preconcurrency init<C>(bounds: MapCameraBounds? = nil, interactionModes: MapInteractionModes = .all, selection: Binding<MapFeature?>, scope: Namespace.ID? = nil, @MapContentBuilder content: () -> C) where Content == MapContentView<MapFeature, C>, C : MapContent
```

## Parameters

`bounds`

The [`MapCameraBounds`](/documentation/MapKit/MapCameraBounds) that define the camera’s view of the map.

`interactionModes`

The [`MapInteractionModes`](/documentation/MapKit/MapInteractionModes) that describe ways a person can interact with the map.

`selection`

A binding to a [`MapFeature`](/documentation/MapKit/MapFeature) that represents a person’s selection.

`scope`

The map’s <doc://com.apple.documentation/documentation/SwiftUI/Namespace/ID>.

`content`

A [`MapContent`](/documentation/MapKit/MapContent) content builder that supplies the map’s content.

---

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)