PlaceDetailsView
@MainActor
@preconcurrency
struct PlaceDetailsView
extension PlaceDetailsView : Sendable, View
The view for the place details component.
-
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.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
-
All
PlaceDetailsContent
types for the place details full view.Declaration
Swift
@MainActor @preconcurrency static let allContent: Set<PlaceDetailsContent>
-
The content and behavior of the view.
When you implement a custom view, you must implement a computed
body
property 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 place details full view.
Declaration
Swift
@MainActor @preconcurrency var configuration: PlaceDetailsConfiguration
-
Declaration
Swift
@MainActor @preconcurrency init(orientation: PlaceDetailsViewOrientation = .vertical, query: Binding<PlaceDetailsQuery>, configuration: PlaceDetailsConfiguration, placeDetailsCallback: @escaping (PlaceDetailsResult) -> Void)
-
The orientation of the place details view.
Declaration
Swift
@MainActor @preconcurrency var orientation: PlaceDetailsViewOrientation
-
The place details component query.
Declaration
Swift
@Binding @MainActor @preconcurrency var query: PlaceDetailsQuery { get nonmutating set }
-
The standard
PlaceDetailsContent
types for the place details full view.Declaration
Swift
@MainActor @preconcurrency static let standardContent: Set<PlaceDetailsContent>