PlaceDetailsCompactView
struct PlaceDetailsCompactView
extension PlaceDetailsCompactView : Sendable, View
-
Declaration
Swift
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
typealias Body = some View
-
The body of the place details compact view.
Declaration
Swift
var body: some View { get }
-
The place details widget content type.
Declaration
Swift
var contentType: Set<PlaceDetailsCompactContent>
-
Initializer for the place details compact view.
Declaration
Swift
init(orientation: PlaceDetailsViewOrientation = .vertical, query: Binding<PlaceDetailsQuery>, contentType: Set<PlaceDetailsCompactContent>, theme: PlaceWidgetTheme, placeDetailsCallback: @escaping (PlaceDetailsResult) -> Void, preferTruncation: Bool = false)
Parameters
orientation
The orientation of the place details view.
query
The place details widget query.
contentType
The place details widget content type.
-
The orientation of the place details view.
Declaration
Swift
var orientation: PlaceDetailsViewOrientation
-
Declaration
Swift
var preferTruncation: Bool
-
The place details widget query.
Declaration
Swift
var query: PlaceDetailsQuery { get nonmutating set }
-
The theme of the place details widget.
Declaration
Swift
var theme: PlaceWidgetTheme