FUIMapDetailPanelContentViewController

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: A String used as the header text inside the panel. The headline text can wrap up to two lines and truncates at the tail.
  • subheadlineText: A String used as the subheadline text inside the panel. The subheadline text gradually disappears while the tableView scrolls.
  • didSelectTitleHandler: An optional handler that can be set by the developer that is executed when the headlineText is tapped. If the didSelectTitleHandler is not nil, the headlineText text 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
#if swift(>=4.2)
    content.tableView.rowHeight  = UITableView.automaticDimension
#else
    content.tableView.rowHeight = UITableViewAutomaticDimension
#endif
  • A String used as the header text inside the panel. The headline text can wrap up to two lines and truncates at the tail.

    Declaration

    Swift

    public var headlineText: String! { get set }
  • A String used as the subheadline text inside the panel. The subheadline text gradually disappears while the tableView scrolls.

    Declaration

    Swift

    public var subheadlineText: String! { get set }
  • An optional handler that can be set by the developer that is executed when the headlineText is tapped. If the didSelectTitleHandler is not nil, the headlineText text color is changed to show that it is tappable.

    Declaration

    Swift

    public var didSelectTitleHandler: (() -> Void)? { get set }
  • An FUIButton that implicitly calls popChildViewController() by default. If the didSelectHandler is set, it is up to the developer to manage dismissing this controller.

    Declaration

    Swift

    public var closeButton: FUIButton { get }
  • :nodoc

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)