ActionTableViewCell
@IBDesignable
@MainActor
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: AUILabeldescribing the intended action.actionImageView: AUIImageViewthat 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
UILabeldescribing the intended action.Declaration
Swift
@MainActor public let actionTitleLabel: UILabel -
A
UIImageViewthat will have an icon image and a tint color.Declaration
Swift
@MainActor public let actionImageView: UIImageView -
Reuse identifier @return String a reuse identifier that describes FUIMapDetailActionTableViewCell
Declaration
Swift
@MainActor open class var reuseIdentifier: String { get } -
Declaration
Swift
@MainActor required public init() -
Declaration
Swift
@MainActor open override func stateDidChange() -
Declaration
Swift
@MainActor open override func prepareForReuse()