PlaceSearchConfiguration
struct PlaceSearchConfigurationextension PlaceSearchConfiguration : SendableThe 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
contentThe types of content to display in the view.
preferTruncationWhether long text in the view should be truncated.
themeThe theme of the view.
attributionPositionThe position of the attribution in the view.
selectableWhether 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