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
: AUITableView
that displays search results. Developer must set the tableView datasource and delegate.searchBar
: AFUIMapDetailPanelSearchBar
that should filter data. Developer must set the searchBar delegate.preferredContentSize
: ACGSize
that determines the size of theUIViewController
. This variable drives the resizing capabilities of the view and must set correctly and properly updated.isApplyingBlurBackground
: ABool
that determines if thetableView
will use its blurredBackground. Setting it to false will set the tableView to theUITableView
default values.isApplyingBlurBackground
default values is true.searchBar
: AFUIMapDetailPanelSearchBar
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 theUIViewController
. 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()