FUIMapDetailPanelSearchResultsViewController

public class FUIMapDetailPanelSearchResultsViewController : FUIMapDetailPanelViewController

A View Controller component within the FUIMapDetailPanel as the searchResults. This controller shows a tableView with search results using a given searchBar. It is up to the developer to set the searchBar delegate, tableView datasource, and tableView delegate. Typically not used directly by developer.

Available:

  • tableView: A UITableView that displays search results. Developer must set the tableView datasource and delegate.
  • searchBar: A FUIMapDetailPanelSearchBar that should filter data. Developer must set the searchBar delegate.
  • preferredContentSize: A CGSize that determines the size of the UIViewController. This variable drives the resizing capabilities of the view and must set correctly and properly updated.
  • isApplyingBlurBackground: A Bool that determines if the tableView will use its blurredBackground. Setting it to false will set the tableView to the UITableView default values. isApplyingBlurBackground default value is true.
  • searchBar: A FUIMapDetailPanelSearchBar used to filter data.

Usage:

let search = FUIMapDetailPanelSearchResultsViewController()
search.isApplyingBlurBackground = true
search.tableView.dataSource = tableViewDataSource
search.tableView.delegate = tableViewDelegate
search.tableView.register(FUIMapDetailTagObjectTableViewCell.self, forCellReuseIdentifier: FUIMapDetailTagObjectTableViewCell.reuseIdentifier)
search.searchBar.delegate = searchBarDelegate
  • A Boolean determining if the background will have a blur and change the relevant contents of the search controller to clear.

    Declaration

    Swift

    public var isApplyingBlurBackground: Bool { get set }
  • A FUIMapDetailPanelSearchBar that should filter data. Developer must set the searchBar delegate.

    Declaration

    Swift

    public let searchBar: FUIMapDetailPanelSearchBar
  • A CGSize that determines the size of the UIViewController. This variable drives the resizing capabilities of the view and must set correctly and properly updated.

    Declaration

    Swift

    open override var preferredContentSize: CGSize { get set }
  • Ensures the searchBar resizes correctly with the view controller

    Declaration

    Swift

    open override func viewWillLayoutSubviews()