# SearchInAppsSDK Framework Reference

# SearchSuggestionsViewController

    @available(iOS, introduced: 14)
    @objc
    @objcMembers
    class SearchSuggestionsViewController

A class to make it easier to use the SearchSuggestionsView in UIKit applications.

The way this is to be included in a UIViewController is to:

1. Create an instance of a SearchSuggestionsViewController with a specified customization option `_searchSuggestionsViewController = [[SearchSuggestionsViewController alloc] initWithCustomizationOption: [[SearchSuggestionsViewCustomizationOption alloc] init]];`
2. Add this to the view controller `[_searchSuggestionsViewController addToViewController:self];`
3. Add its view to the parent view `[self.view addSubview:_searchSuggestionsViewController.view];`
4. Assign search suggestions to it to render those search suggestions. `dispatch_async(dispatch_get_main_queue(), ^{
   _searchSuggestionsViewController.searchSuggestions = _searchSuggestions;
   }`
- `


  ### [customizationOptions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchSuggestionsViewController#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewController(py)customizationOptions)


  ` The customization options of the search suggestions view.

  #### Declaration

  Swift

      @available(iOS, introduced: 14)
      @objc
      var customizationOptions: https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchSuggestionsViewOptions.html { get set }

- `


  ### [searchSuggestions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchSuggestionsViewController#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewController(py)searchSuggestions)


  ` The search suggestions used to generate the UI.

  #### Declaration

  Swift

      @available(iOS, introduced: 14)
      @objc
      var searchSuggestions: https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes.html#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestions? { get set }

- `


  ### [view](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchSuggestionsViewController#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewController(py)view)


  ` The UIView of the search suggestions which is converted from the hostingController's SwiftUI
  rootview.

  #### Declaration

  Swift

      @available(iOS, introduced: 14)
      @objc
      var view: UIView { get }