# GooglePlacesSwift Framework Reference

# PlaceSearchConfiguration

    struct PlaceSearchConfiguration

    extension PlaceSearchConfiguration : Sendable, SendableMetatype

The configuration of the place search view.
- `


  ### [attributionPosition](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceSearchConfiguration#/s:17GooglePlacesSwift24PlaceSearchConfigurationV19attributionPositionAA0d15ViewAttributionH0Ovp)


  ` The position of the attribution in the view.

  #### Declaration

  Swift

      let attributionPosition: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceViewAttributionPosition.html

- `


  ### [content](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceSearchConfiguration#/s:17GooglePlacesSwift24PlaceSearchConfigurationV7contentShyAA0dE7ContentOGvp)


  ` The types of content to display in the view.

  #### Declaration

  Swift

      let content: Set<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceSearchContent.html>

- `


  ### [init(content:preferTruncation:theme:attributionPosition:selectable:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceSearchConfiguration#/s:17GooglePlacesSwift24PlaceSearchConfigurationV7content16preferTruncation5theme19attributionPosition10selectableACShyAA0dE7ContentOG_SbAA0B13MaterialThemeVAA0d15ViewAttributionL0OSbtcfc)


  ` Creates a configuration for the place search view.

  #### Declaration

  Swift

      init(content: Set<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceSearchContent.html>, preferTruncation: Bool = false, theme: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlacesMaterialTheme.html, attributionPosition: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlaceViewAttributionPosition.html = .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.
- `


  ### [preferTruncation](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceSearchConfiguration#/s:17GooglePlacesSwift24PlaceSearchConfigurationV16preferTruncationSbvp)


  ` Whether long text in the view should be truncated.

  #### Declaration

  Swift

      let preferTruncation: Bool

- `


  ### [selectable](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceSearchConfiguration#/s:17GooglePlacesSwift24PlaceSearchConfigurationV10selectableSbvp)


  ` Whether an individual place in the view is selectable.

  #### Declaration

  Swift

      let selectable: Bool

- `


  ### [theme](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceSearchConfiguration#/s:17GooglePlacesSwift24PlaceSearchConfigurationV5themeAA0B13MaterialThemeVvp)


  ` The theme of the view.

  #### Declaration

  Swift

      let theme: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlacesMaterialTheme.html