AdvancedPlaceDetailsView
@MainActor
@preconcurrency
struct AdvancedPlaceDetailsViewextension AdvancedPlaceDetailsView : SearchMediaSupportable, SearchReviewsSupportable, Sendable, SendableMetatype, ViewA premium view that displays place details results.
Has additional configurations compared to its basic counterpart (PlaceDetailsView).
-
Declaration
Swift
@MainActor @preconcurrency var $query: Binding<PlaceDetailsQuery> { get } -
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.propertyproperty.Declaration
Swift
typealias Body = some View -
All of the content that can be displayed for the view.
Declaration
Swift
@MainActor @preconcurrency static let allContent: Set<AdvancedPlaceDetailsContent> -
The content and behavior of the view.
When you implement a custom view, you must implement a computed
bodyproperty to provide the content for your view. Return a view that’s composed of built-in views that SwiftUI provides, plus other composite views that you’ve already defined:struct MyView: View { var body: some View { Text("Hello, World!") } }For more information about composing views and a view hierarchy, see doc:Declaring-a-Custom-View.
Declaration
Swift
@MainActor @preconcurrency var body: some View { get } -
The configuration of the view.
Declaration
Swift
@MainActor @preconcurrency var configuration: AdvancedPlaceDetailsConfiguration -
Adds a closure to be called when place actions are requested for the corner area of the place view.
Actions are presented starting from the corner and extend inwards.
Declaration
Swift
@MainActor @preconcurrency func cornerActions(actionsProvider: @escaping (Place) -> [CornerPlaceActionElement]) -> AdvancedPlaceDetailsViewParameters
actionsProviderA closure that returns a list of
CornerPlaceActionElements to be displayed for the specified location. An empty array should be returned if no elements are desired.Return Value
The
AdvancedPlaceDetailsViewwith the closure added. -
Initializes a new instance of
AdvancedPlaceDetailsView.Declaration
Swift
@MainActor @preconcurrency init(orientation: PlaceViewOrientation = .vertical, query: Binding<PlaceDetailsQuery>, configuration: AdvancedPlaceDetailsConfiguration, placeDetailsCallback: @escaping (PlaceDetailsResult) -> Void)Parameters
orientationThe orientation of the view.
queryThe query that should be performed for the view.
configurationThe configuration of the view.
placeDetailsCallbackThe callback to be called when the view is loaded.
-
Adds a closure to be called when place actions are requested for the main body area of the place view.
Declaration
Swift
@MainActor @preconcurrency func mainActions(actionsProvider: @escaping (Place) -> [MainPlaceActionElement]) -> AdvancedPlaceDetailsViewParameters
actionsProviderA closure that returns a list of
MainPlaceActionElements to be displayed for the specified location. An empty array should be returned if no elements are desired.Return Value
The
AdvancedPlaceDetailsViewwith the closure added. -
The orientation of the view.
Declaration
Swift
@MainActor @preconcurrency var orientation: PlaceViewOrientation -
The callback to be called when the place details view is loaded.
Declaration
Swift
@MainActor @preconcurrency var placeDetailsCallback: (PlaceDetailsResult) -> Void -
The query that should be performed for the view.
Declaration
Swift
@Binding @MainActor @preconcurrency var query: PlaceDetailsQuery { get nonmutating set } -
A set of standard content to be displayed for the view.
Declaration
Swift
@MainActor @preconcurrency static let standardContent: Set<AdvancedPlaceDetailsContent>