GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
PlaceSearchConfiguration
struct PlaceSearchConfiguration
extension PlaceSearchConfiguration : Sendable
The configuration of the place search view.
-
The position of the attribution in the view.
-
The types of content to display in the view.
-
Creates a configuration for the place search view.
Parameters
content
|
The types of content to display in the view.
|
preferTruncation
|
Whether long text in the view should be truncated.
|
theme
|
|
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
-
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[],[],null,["# GooglePlacesSwift Framework Reference\n\nPlaceSearchConfiguration\n========================\n\n struct PlaceSearchConfiguration\n\n extension PlaceSearchConfiguration : Sendable\n\nThe configuration of the place search view.\n- `\n ``\n ``\n `\n\n ### [attributionPosition](#/s:17GooglePlacesSwift24PlaceSearchConfigurationV19attributionPositionAA0d15ViewAttributionH0Ovp)\n\n `\n ` \n The position of the attribution in the view. \n\n #### Declaration\n\n Swift \n\n let attributionPosition: ../Enums/PlaceViewAttributionPosition.html\n\n- `\n ``\n ``\n `\n\n ### [content](#/s:17GooglePlacesSwift24PlaceSearchConfigurationV7contentShyAA0dE7ContentOGvp)\n\n `\n ` \n The types of content to display in the view. \n\n #### Declaration\n\n Swift \n\n let content: Set\u003c../Enums/PlaceSearchContent.html\u003e\n\n- `\n ``\n ``\n `\n\n ### [init(content:preferTruncation:theme:attributionPosition:selectable:)](#/s:17GooglePlacesSwift24PlaceSearchConfigurationV7content16preferTruncation5theme19attributionPosition10selectableACShyAA0dE7ContentOG_SbAA0B13MaterialThemeVAA0d15ViewAttributionL0OSbtcfc)\n\n `\n ` \n Creates a configuration for the place search view. \n\n #### Declaration\n\n Swift \n\n init(content: Set\u003c../Enums/PlaceSearchContent.html\u003e, preferTruncation: Bool = false, theme: ../Structs/PlacesMaterialTheme.html, attributionPosition: ../Enums/PlaceViewAttributionPosition.html = .top, selectable: Bool = false)\n\n #### Parameters\n\n |-----------------------------|--------------------------------------------------------|\n | ` `*content*` ` | The types of content to display in the view. |\n | ` `*preferTruncation*` ` | Whether long text in the view should be truncated. |\n | ` `*theme*` ` | The theme of the view. |\n | ` `*attributionPosition*` ` | The position of the attribution in the view. |\n | ` `*selectable*` ` | Whether an individual place in the view is selectable. |\n\n #### Return Value\n\n The configuration for the place search view.\n- `\n ``\n ``\n `\n\n ### [preferTruncation](#/s:17GooglePlacesSwift24PlaceSearchConfigurationV16preferTruncationSbvp)\n\n `\n ` \n Whether long text in the view should be truncated. \n\n #### Declaration\n\n Swift \n\n let preferTruncation: Bool\n\n- `\n ``\n ``\n `\n\n ### [selectable](#/s:17GooglePlacesSwift24PlaceSearchConfigurationV10selectableSbvp)\n\n `\n ` \n Whether an individual place in the view is selectable. \n\n #### Declaration\n\n Swift \n\n let selectable: Bool\n\n- `\n ``\n ``\n `\n\n ### [theme](#/s:17GooglePlacesSwift24PlaceSearchConfigurationV5themeAA0B13MaterialThemeVvp)\n\n `\n ` \n The theme of the view. \n\n #### Declaration\n\n Swift \n\n let theme: ../Structs/PlacesMaterialTheme.html"]]