# PlaceDetailsCompactView

    @MainActor
    struct PlaceDetailsCompactView

    extension PlaceDetailsCompactView : Sendable, SendableMetatype, View

- `


  ### [$query](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV6$query0C2UI7BindingVyAA0dE5QueryVGvp)


  `

  #### Declaration

  Swift

      @MainActor
      var $query: Binding<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsQuery.html> { get }

- `


  ### [Body](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV4Bodya)


  ` The type of view representing the body of this view.

  When you create a custom view, Swift infers this type from your
  implementation of the required `View/body-swift.property` property.

  #### Declaration

  Swift

      typealias Body = some View

- `


  ### [allContent](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV10allContentShyAA0defI0OGvpZ)


  ` All `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceDetailsCompactContent.html` types for the place details compact view.

  #### Declaration

  Swift

      @MainActor
      static let allContent: Set<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceDetailsCompactContent.html>

- `


  ### [body](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV4bodyQrvp)


  ` The body of the place details compact view.

  #### Declaration

  Swift

      @MainActor
      @preconcurrency
      var body: some View { get }

- `


  ### [configuration](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV13configurationAA0deF13ConfigurationVvp)


  ` The configuration of the place details compact view.

  #### Declaration

  Swift

      @MainActor
      var configuration: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactConfiguration.html

- `


  ### [init(orientation:query:configuration:placeDetailsCallback:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV11orientation5query13configuration05placeE8CallbackAcA0dG11OrientationO_0C2UI7BindingVyAA0dE5QueryVGAA0deF13ConfigurationVyAA0dE6ResultCctcfc)


  ` Initializer for the place details compact view.

  #### Declaration

  Swift

      @MainActor
      init(orientation: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceViewOrientation.html = .vertical, query: Binding<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsQuery.html>, configuration: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactConfiguration.html, placeDetailsCallback: @escaping (https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Classes/PlaceDetailsResult.html) -> Void)

  #### Parameters

  |---|---|
  | ` orientation ` | The orientation of the place details view. |
  | ` query ` | The place details component query. |
  | ` configuration ` | The configuration of the place details compact view. |
  | ` placeDetailsCallback ` | The callback to be invoked when the place details view is loaded. |

- `


  ### [orientation](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV11orientationAA0dG11OrientationOvp)


  ` The orientation of the place details view.

  #### Declaration

  Swift

      @MainActor
      var orientation: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceViewOrientation.html

- `


  ### [query](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV5queryAA0dE5QueryVvp)


  ` The place details component query.

  #### Declaration

  Swift

      @Binding
      @MainActor
      var query: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsQuery.html { get nonmutating set }

- `


  ### [standardContent](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceDetailsCompactView#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV15standardContentShyAA0defI0OGvpZ)


  ` The standard `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceDetailsCompactContent.html` types for the place details compact view.

  #### Declaration

  Swift

      @MainActor
      static let standardContent: Set<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceDetailsCompactContent.html>