ActionTableViewCell
@IBDesignable
open class ActionTableViewCell : FUIBaseTableViewCell, FUIBackgroundSchemeSupporting
The FUIMapDetailPanel.ActionTableViewCell
is a UITableViewCell
consisting of a UILabel
and a UIImageView
. This cell is intended to be used as a call to action in the map detail panel.
Available:
actionTitleLabel
: AUILabel
describing the intended action.actionImageView
: AUIImageView
that will have an icon image and a tint color.
Initialization and Configuration:
Register the cell within the viewDidLoad
method
self.tableView.register(FFUIMapDetailPanel.ActionTableViewCell.self, forCellReuseIdentifier: FUIMapDetailPanel.ActionTableViewCell.reuseIdentifier)
Within the tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath)
:
let cell = tableView.dequeueReusableCell(withIdentifier: FUIMapDetailPanel.ActionTableViewCell.reuseIdentifier, for: indexPath) as! FUIMapDetailPanel.ActionTableViewCell
cell.actionTitleLabel.text = "Add Notification"
cell.actionImageView.image = FUIIconLibrary.system.create.withRenderingMode(.alwaysTemplate)
return cell
theming:
fdlFUIMapDetailActionTableViewCell_actionTitleLabel {
font-style: body;
font-color: @tintColorDark;
}
fdlFUIMapDetailActionTableViewCell_actionImageView {
tint-color: @primary5;
}
-
A
UILabel
describing the intended action.Declaration
Swift
public let actionTitleLabel: UILabel
-
A
UIImageView
that will have an icon image and a tint color.Declaration
Swift
public let actionImageView: UIImageView
-
Reuse identifier @return String a reuse identifier that describes FUIMapDetailActionTableViewCell
Declaration
Swift
open class var reuseIdentifier: String { get }
-
Declaration
Swift
open override func prepareForReuse()