# SearchMediaSupportable

    @MainActor
    @preconcurrency
    protocol SearchMediaSupportable : View

A protocol for views that support search media options.
- `


  ### [searchMediaOptions(_:completion:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Protocols/SearchMediaSupportable#/s:17GooglePlacesSwift22SearchMediaSupportablePAAE06searchE7Options_10completionxAA0deH0VSg_ySays6ResultOyAA0dE7SummaryVAA0B5ErrorOGGYbcSgtF)


  ` Extension method Adds search media options to a place view.

  When this is set, one or more searches through a place's media may be performed, depending
  on the type of view that this modifier is applied on (e.g. for `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceSearchView.html` and
  `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/AdvancedPlaceListView.html`, a search will be performed for each place in the list).

  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 searchMediaOptions(_ options: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/SearchMediaOptions.html?, completion: (@Sendable ([Result<https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/SearchMediaSummary.html, https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Enums/PlacesError.html>]) -> Void)? = nil) -> Self

  #### Parameters

  |---|---|
  | ` options ` | The search options for the place's media. |
  | ` completion ` | The handler to be called when the searches are completed. |

  #### Return Value

  The view with the closure added.