FUIMapDetailPanelSearchResultsViewController
@MainActor
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: AUITableViewthat displays search results. Developer must set the tableView datasource and delegate.searchBar: AFUIMapDetailPanelSearchBarthat should filter data. Developer must set the searchBar delegate.preferredContentSize: ACGSizethat determines the size of theUIViewController. This variable drives the resizing capabilities of the view and must set correctly and properly updated.isApplyingBlurBackground: ABoolthat determines if thetableViewwill use its blurredBackground. Setting it to false will set the tableView to theUITableViewdefault values.isApplyingBlurBackgrounddefault value is true.searchBar: AFUIMapDetailPanelSearchBarused 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
@MainActor public var isApplyingBlurBackground: Bool { get set } -
A
FUIMapDetailPanelSearchBarthat should filter data. Developer must set the searchBar delegate.Declaration
Swift
@MainActor public let searchBar: FUIMapDetailPanelSearchBar -
A
CGSizethat determines the size of theUIViewController. This variable drives the resizing capabilities of the view and must set correctly and properly updated.Declaration
Swift
@MainActor open override var preferredContentSize: CGSize { get set }
-
Ensures the searchBar resizes correctly with the view controller
Declaration
Swift
@MainActor open override func viewWillLayoutSubviews()