When you implement a custom view, you must implement a computed
body property to provide the content for your view. Return a view
that’s composed of built-in views that SwiftUI provides, plus other
composite views that you’ve already defined:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[],[],null,["# GooglePlacesSwift Framework Reference\n\nPlaceSearchView\n===============\n\n @MainActor\n struct PlaceSearchView\n\n extension PlaceSearchView : Sendable, View\n\n- `\n ``\n ``\n `\n\n ### [Body](#/s:17GooglePlacesSwift15PlaceSearchViewV4Bodya)\n\n `\n ` \n The type of view representing the body of this view.\n\n When you create a custom view, Swift infers this type from your\n implementation of the required `View/body-swift.property` property. \n\n #### Declaration\n\n Swift \n\n @available(watchOS, introduced: 6.0)\n @available(macOS, introduced: 10.15)\n @available(iOS, introduced: 13.0)\n @available(tvOS, introduced: 13.0)\n typealias Body = some View\n\n- `\n ``\n ``\n `\n\n ### [allContent](#/s:17GooglePlacesSwift15PlaceSearchViewV10allContentShyAA0deH0OGvpZ)\n\n `\n ` \n All [PlaceSearchContent](../Enums/PlaceSearchContent.html) types for the place search component. \n\n #### Declaration\n\n Swift \n\n @MainActor\n static let allContent: Set\u003c../Enums/PlaceSearchContent.html\u003e\n\n- `\n ``\n ``\n `\n\n ### [body](#/s:17GooglePlacesSwift15PlaceSearchViewV4bodyQrvp)\n\n `\n ` \n The content and behavior of the view.\n\n When you implement a custom view, you must implement a computed\n `body` property to provide the content for your view. Return a view\n that's composed of built-in views that SwiftUI provides, plus other\n composite views that you've already defined: \n\n struct MyView: View {\n var body: some View {\n Text(\"Hello, World!\")\n }\n }\n\n For more information about composing views and a view hierarchy,\n see \u003cdoc:Declaring-a-Custom-View\u003e. \n\n #### Declaration\n\n Swift \n\n @MainActor\n @preconcurrency\n var body: some View { get }\n\n- `\n ``\n ``\n `\n\n ### [init(orientation:request:configuration:)](#/s:17GooglePlacesSwift15PlaceSearchViewV11orientation7request13configurationAcA0dF11OrientationO_0C2UI7BindingVyAA0deF7RequestOGAA0dE13ConfigurationVtcfc)\n\n `\n ` \n Creates a list of place search results. \n\n #### Declaration\n\n Swift \n\n @MainActor\n init(orientation: ../Enums/PlaceViewOrientation.html = .vertical, request: Binding\u003c../Enums/PlaceSearchViewRequest.html\u003e, configuration: ../Structs/PlaceSearchConfiguration.html)\n\n #### Parameters\n\n |-----------------------|---------------------------------------------------------------------------------|\n | ` `*orientation*` ` | The orientation of the view. |\n | ` `*request*` ` | The request for the view, which is used when fetching the place search results. |\n | ` `*configuration*` ` | The configuration settings for the view. |\n\n #### Return Value\n\n A view that displays a list of place search results.\n- `\n ``\n ``\n `\n\n ### [onLoad(_:)](#/s:17GooglePlacesSwift15PlaceSearchViewV6onLoadyACySayAA0D0VGcF)\n\n `\n ` \n Adds a callback to be called when the place results are loaded. \n\n #### Declaration\n\n Swift \n\n @MainActor\n func onLoad(_ callback: @escaping ([../Structs/Place.html]) -\u003e Void) -\u003e PlaceSearchView\n\n #### Parameters\n\n |------------------|--------------------------------------------------------------|\n | ` `*callback*` ` | The callback to be called when the place results are loaded. |\n\n #### Return Value\n\n The PlaceSearchView with the callback added.\n- `\n ``\n ``\n `\n\n ### [onPlaceSelected(_:)](#/s:17GooglePlacesSwift15PlaceSearchViewV02onD8SelectedyACyAA0D0VcF)\n\n `\n ` \n Adds a callback to be called when a place is selected. \n\n #### Declaration\n\n Swift \n\n @MainActor\n func onPlaceSelected(_ callback: @escaping (../Structs/Place.html) -\u003e Void) -\u003e PlaceSearchView\n\n #### Parameters\n\n |------------------|-----------------------------------------------------|\n | ` `*callback*` ` | The callback to be called when a place is selected. |\n\n #### Return Value\n\n The PlaceSearchView with the callback added.\n- `\n ``\n ``\n `\n\n ### [onRequestError(_:)](#/s:17GooglePlacesSwift15PlaceSearchViewV14onRequestErroryACyAA0bI0OcF)\n\n `\n ` \n Adds a callback to be called when the place search request fails. \n\n #### Declaration\n\n Swift \n\n @MainActor\n func onRequestError(_ callback: @escaping (../Enums/PlacesError.html) -\u003e Void) -\u003e PlaceSearchView\n\n #### Parameters\n\n |------------------|--------------------------------------------------------|\n | ` `*callback*` ` | The callback to be called if the search request fails. |\n\n #### Return Value\n\n The PlaceSearchView with the callback added.\n- `\n ``\n ``\n `\n\n ### [standardContent](#/s:17GooglePlacesSwift15PlaceSearchViewV15standardContentShyAA0deH0OGvpZ)\n\n `\n ` \n A set of standard [PlaceSearchContent](../Enums/PlaceSearchContent.html) types for the place search component. \n\n #### Declaration\n\n Swift \n\n @MainActor\n static let standardContent: Set\u003c../Enums/PlaceSearchContent.html\u003e"]]