<!--
{
  "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/MapContentBuilder/buildBlock(_:)-5ewn9",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A14ContentBuilderV10buildBlockyxxAA0aE0RzlFZ"
  },
  "title" : "buildBlock(_:)"
}
-->

# buildBlock(_:)

Creates a map content block that contains a single content result.

```
static func buildBlock<C>(_ content: C) -> C where C : MapContent
```

## Parameters

`content`

The view content to add to the block.

## Return Value

Returns the [`MapContent`](/documentation/MapKit/MapContent) with the single element you provided.

---

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)