---
title: LookAroundPreview
framework: mapkit
role: symbol
role_heading: Structure
path: mapkit/lookaroundpreview
---

# LookAroundPreview

A view that provides a Look Around preview for a specific geographic location.

## Declaration

```swift
@MainActor @preconcurrency struct LookAroundPreview
```

## Overview

Overview Use a LookAroundPreview to create preview imagery for a specific geographic location on the map that you can place in your view. In the following example, a travel recommendations app displays and styles a stack of Look Around previews it generates from an array of ItineraryItem structures that contain the location’s title and Look Around scene:     struct LookAroundPreviewsView: View {         let itinerary: [ItineraryItem]         var body: some View {             ScrollView {                 LazyVStack {                     ForEach(itinerary) { item in                         LookAroundPreview(initialScene: item.lookAroundScene)                             .frame(height: 128)                             .overlay(alignment: .bottomTrailing) {                                 Text(item.title)                                     .font(.caption)                                     .foregroundColor(.white)                                     .padding()                             }                     }                 }             }         }     } To display a Look Around viewer a person can explore, apply a lookAroundViewer view modifier to a specific view, then add a control the user interacts with to display the Look Around viewer. In the following example, the lookAroundViewer view modifier observes a binding to Boolean value to determine whether to display the Look Around viewer.     var lookAroundScene: MKLookAroundScene?

@State private var isLookingAround: Bool = false

var body: some View {         MyInterestingView()             .lookAroundViewer(isPresented: $isLookingAround, initialScene: lookAroundScene)             .toolbar {                 ToolbarItem {                     Button(action: { lookingAround = true }) {                         Image(systemName: "binoculars")                 }             }         }        }

## Topics

### Creating a Look Around preview

- [init(initialScene:allowsNavigation:showsRoadLabels:pointsOfInterest:badgePosition:)](mapkit/lookaroundpreview/init(initialscene:allowsnavigation:showsroadlabels:pointsofinterest:badgeposition:).md)
- [init(scene:allowsNavigation:showsRoadLabels:pointsOfInterest:badgePosition:)](mapkit/lookaroundpreview/init(scene:allowsnavigation:showsroadlabels:pointsofinterest:badgeposition:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [View](swiftui/view.md)
