PlaceSearchConfiguration
struct PlaceSearchConfiguration
extension PlaceSearchConfiguration : Sendable
The configuration of the place search view.
-
The position of the attribution in the view.
Declaration
Swift
let attributionPosition: PlaceViewAttributionPosition
-
The types of content to display in the view.
Declaration
Swift
let content: Set<PlaceSearchContent>
-
Creates a configuration for the place search view.
Declaration
Swift
init(content: Set<PlaceSearchContent>, preferTruncation: Bool = false, theme: PlacesMaterialTheme, attributionPosition: PlaceViewAttributionPosition = .top, selectable: Bool = false)
Parameters
content
The types of content to display in the view.
preferTruncation
Whether long text in the view should be truncated.
theme
The theme of the view.
attributionPosition
The position of the attribution in the view.
selectable
Whether an individual place in the view is selectable.
Return Value
The configuration for the place search view.
-
Whether long text in the view should be truncated.
Declaration
Swift
let preferTruncation: Bool
-
Whether an individual place in the view is selectable.
Declaration
Swift
let selectable: Bool
-
The theme of the view.
Declaration
Swift
let theme: PlacesMaterialTheme