SearchReviewsSupportable
protocol SearchReviewsSupportableA protocol for views that support search reviews options.
-
Extension methodsearchReviewsOptions(_:completion:)
Adds search reviews options to a place view.
When this is set, a search will be performed through the place’s reviews.
If the search was a success, and there were results, they will be displayed for the place. In all other cases, the default content will be displayed instead as a fallback (if possible).
Declaration
Swift
@MainActor func searchReviewsOptions(_ options: SearchReviewsOptions?, completion: (([Result<SearchReviewsSummary, PlacesError>]) -> Void)? = nil) -> SelfParameters
optionsThe search options for the place’s reviews.
completionThe handler to be called when the searches are completed.
Return Value
The view with the search reviews options and completion handler applied.