GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
PlaceDetailsCompactView
@MainActor
struct PlaceDetailsCompactView
extension PlaceDetailsCompactView : Sendable, View
-
-
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
@available(watchOS, introduced: 6.0)
@available(macOS, introduced: 10.15)
@available(iOS, introduced: 13.0)
@available(tvOS, introduced: 13.0)
typealias Body = some View
-
-
The body of the place details compact view.
Declaration
Swift
@MainActor
@preconcurrency
var body: some View { get }
-
The configuration of the place details compact view.
-
Initializer for the place details compact view.
Parameters
orientation
|
The orientation of the place details view.
|
query
|
The place details component query.
|
-
The orientation of the place details view.
-
The place details component query.
-
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],[],null,["# GooglePlacesSwift Framework Reference\n\nPlaceDetailsCompactView\n=======================\n\n @MainActor\n struct PlaceDetailsCompactView\n\n extension PlaceDetailsCompactView : Sendable, View\n\n- `\n ``\n ``\n `\n\n ### [$query](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV6$query0C2UI7BindingVyAA0dE5QueryVGvp)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n @MainActor\n var $query: Binding\u003c../Structs/PlaceDetailsQuery.html\u003e { get }\n\n- `\n ``\n ``\n `\n\n ### [Body](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV4Bodya)\n\n `\n ` \n The type of view representing the body of this view.\n\n When you create a custom view, Swift infers this type from your\n implementation of the required `View/body-swift.property` property. \n\n #### Declaration\n\n Swift \n\n @available(watchOS, introduced: 6.0)\n @available(macOS, introduced: 10.15)\n @available(iOS, introduced: 13.0)\n @available(tvOS, introduced: 13.0)\n typealias Body = some View\n\n- `\n ``\n ``\n `\n\n ### [allContent](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV10allContentShyAA0defI0OGvpZ)\n\n `\n ` \n All [PlaceDetailsCompactContent](../Enums/PlaceDetailsCompactContent.html) types for the place details compact view. \n\n #### Declaration\n\n Swift \n\n @MainActor\n static let allContent: Set\u003c../Enums/PlaceDetailsCompactContent.html\u003e\n\n- `\n ``\n ``\n `\n\n ### [body](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV4bodyQrvp)\n\n `\n ` \n The body of the place details compact view. \n\n #### Declaration\n\n Swift \n\n @MainActor\n @preconcurrency\n var body: some View { get }\n\n- `\n ``\n ``\n `\n\n ### [configuration](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV13configurationAA0deF13ConfigurationVvp)\n\n `\n ` \n The configuration of the place details compact view. \n\n #### Declaration\n\n Swift \n\n @MainActor\n var configuration: ../Structs/PlaceDetailsCompactConfiguration.html\n\n- `\n ``\n ``\n `\n\n ### [init(orientation:query:configuration:placeDetailsCallback:)](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV11orientation5query13configuration05placeE8CallbackAcA0deG11OrientationO_0C2UI7BindingVyAA0dE5QueryVGAA0deF13ConfigurationVyAA0dE6ResultCctcfc)\n\n `\n ` \n Initializer for the place details compact view. \n\n #### Declaration\n\n Swift \n\n @MainActor\n init(orientation: ../Enums/PlaceDetailsViewOrientation.html = .vertical, query: Binding\u003c../Structs/PlaceDetailsQuery.html\u003e, configuration: ../Structs/PlaceDetailsCompactConfiguration.html, placeDetailsCallback: @escaping (../Classes/PlaceDetailsResult.html) -\u003e Void)\n\n #### Parameters\n\n |---------------------|--------------------------------------------|\n | ` `*orientation*` ` | The orientation of the place details view. |\n | ` `*query*` ` | The place details component query. |\n\n- `\n ``\n ``\n `\n\n ### [orientation](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV11orientationAA0deG11OrientationOvp)\n\n `\n ` \n The orientation of the place details view. \n\n #### Declaration\n\n Swift \n\n @MainActor\n var orientation: ../Enums/PlaceDetailsViewOrientation.html\n\n- `\n ``\n ``\n `\n\n ### [query](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV5queryAA0dE5QueryVvp)\n\n `\n ` \n The place details component query. \n\n #### Declaration\n\n Swift \n\n @Binding\n @MainActor\n var query: ../Structs/PlaceDetailsQuery.html { get nonmutating set }\n\n- `\n ``\n ``\n `\n\n ### [standardContent](#/s:17GooglePlacesSwift23PlaceDetailsCompactViewV15standardContentShyAA0defI0OGvpZ)\n\n `\n ` \n The standard [PlaceDetailsCompactContent](../Enums/PlaceDetailsCompactContent.html) types for the place details compact view. \n\n #### Declaration\n\n Swift \n\n @MainActor\n static let standardContent: Set\u003c../Enums/PlaceDetailsCompactContent.html\u003e"]]