FUITimelineNowIndicatorCell
@MainActor
open class FUITimelineNowIndicatorCell : NibDesignableFUIBaseTableViewCell, FUIStyleSheetAttributesApplying
FUITimelineNowIndicatorCell is a UITableViewCell subclass, designed to present now indicator in a Timeline view.
## Usage
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "FUITimelineNowIndicatorCell", for: indexPath) as! FUITimelineNowIndicatorCell
return cell
}
## Notes
### SingleLine Separator Between Timeline Items in the Table
The default table view separatorStyle is .singleLine. Because of this default setting, there can be a 1.0 px divider line or a separator in-between each item on the timeline in the table. This is not an issue in timeline. To get rid of the separator, set separatorStyle to none in the TabelViewController class
override func viewDidLoad() {
super.viewDidLoad()
// ...
self.tableView.separatorStyle = .none
// ...
}
### Hide the Separator in the next Timeline Items in the Table The Separator can be hiden in the next Timeline cell as following
cell.separatorLineView.isHidden = true
## Theming Supported style classes
fdlFUITimelineNowIndicatorCell
fdlFUITimelineNowIndicatorCell_nodeImageView
fdlFUITimelineNowIndicatorCell_indicatorLine
-
Reuse identifier @return String a reuse identifier that describes FUITimelineNowIndicatorCell
Declaration
Swift
@MainActor open class var reuseIdentifier: String { get }
-
A node image view, centered on the cell’s vertical timeline line.
Declaration
Swift
@IBOutlet @MainActor public private(set) var nodeImageView: FUIImageView! { get } -
The color of the Now Indicator.
Declaration
Swift
@MainActor public var nodeColor: UIColor? { get set } -
Undocumented
Declaration
Swift
@IBOutlet @MainActor public private(set) weak var indicatorLine: UIView! { get }
-
The image used as node icon.
If the value of this property is not nil, the timeline cell uses the given image as the node icon. It ignores the value of the
nodeColorproperty. The developer is responsible for providing a image with desired color.Declaration
Swift
@IBInspectable @MainActor public var nodeImage: UIImage? { get set } -
Property defining the timeline width, which is the width of the whole timestamp view left to the veritical line in the cell. The default width is
70.0pxDeclaration
Swift
@IBInspectable @MainActor public var timelineWidth: CGFloat { get set }