FUIMapDetailPanelContentViewController
@MainActor
final public class FUIMapDetailPanelContentViewController : FUIMapDetailPanelViewController
A View Controller component within the FUIMapDetailPanel as the content. This controller shows additional details of a business object. It is up to the developer to set the tableView dataSource and delegate. Typically not used directly by developer.
Available:
headlineText: AStringused as the header text inside the panel. The headline text can wrap up to two lines and truncates at the tail.subheadlineText: AStringused as the subheadline text inside the panel. The subheadline text gradually disappears while thetableViewscrolls.didSelectTitleHandler: An optional handler that can be set by the developer that is executed when theheadlineTextis tapped. If thedidSelectTitleHandleris not nil, theheadlineTexttext color is changed to show that it is tappable.
Usage:
let content: FUIMapDetailPanelContentViewController = FUIMapDetailPanelContentViewController()
content.headlineText = "Headline Text"
content.subheadlineText = "Subheadline Text"
content.didSelectTitleHandler = {
print("didSelectTitleHandler called!")
}
content.tableView.delegate = delegate
content.tableView.dataSource = dataSource
content.tableView.register(FUIMapDetailBaseObjectTableViewCell.self, forCellReuseIdentifier: FUIMapDetailBaseObjectTableViewCell.reuseIdentifier)
content.tableView.estimatedRowHeight = 100
content.tableView.rowHeight = UITableView.automaticDimension
-
A
Stringused as the header text inside the panel. The headline text can wrap up to two lines and truncates at the tail.Declaration
Swift
@MainActor public var headlineText: String! { get set } -
A
Stringused as the subheadline text inside the panel. The subheadline text gradually disappears while thetableViewscrolls.Declaration
Swift
@MainActor public var subheadlineText: String! { get set } -
An optional handler that can be set by the developer that is executed when the
headlineTextis tapped. If thedidSelectTitleHandleris not nil, theheadlineTexttext color is changed to show that it is tappable.Declaration
Swift
@MainActor public var didSelectTitleHandler: (() -> Void)? { get set }
-
:nodoc
Declaration
Swift
@MainActor required public init?(coder aDecoder: NSCoder)