FUICardCollectionViewCell

open class FUICardCollectionViewCell : FUIBaseDrawingCollectionViewCell<FUICardView>

Showing card view as inner view for collection view cell.

Example Initialization and Configuration:

let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FUICardCollectionViewCell.reuseIdentifier, for: indexPath) as! FUICardCollectionViewCell
// set up main header
cell.mainHeader.detailImageView.image = UIImage(named: "imageName")
cell.mainHeader.title.text = "Title"
cell.mainHeader.subtitle.text = "Subtitle"
cell.mainHeader.overflowAction.isHidden = false
cell.mainHeader.counter.text = "3 of 36"
// set up the icon stack
let dot = FUIAttributedImage(image: FUIIconLibrary.indicator.dot.withRenderingMode(.alwaysTemplate))
let attachment = FUIAttributedImage(image: FUIIconLibrary.indicator.attachment.withRenderingMode(.alwaysTemplate))
mainHeader.iconImages = [dot, attachment, "1"]

// set up media view
cell.mediaView.detailImageView.image = UIImage(named: "imageName")
cell.mediaView.title.text = "Title"
// set a customized height if needed
mediaView.detailImageViewHeight = 300

// set up extended view
cell.extHeader.row1.contents = [
    FUILabelItem(text: "Negative", image: UIImage(systemName: "exclamationmark.triangle.fill"), alignment: .leading),
    FUILabelItem(text: "Critical"),
    FUILabelItem(text: "label")
]
cell.extHeader.row1.separatorStyle = .automatic
cell.extHeader.row2.contents = [FUIRatingControl(style: .standard)]
cell.extHeader.row3.contents = [...]

let dollars = FUIKPIUnitItem(string: "$")
let metric = FUIKPIMetricItem(string: "888.88")
let unit = FUIKPIUnitItem(string: "M")
cell.extHeader.kpiItems = [dollars, metric, unit]
cell.extHeader.kpiFootnote.text = "Label"

// set up body
cell.body.contents = [
   ...
]

// set up footer
cell.footer..primaryButton.isHidden = false
cell.footer..primaryAction.setTitle("Primary", for: .normal)
cell.footer..secondaryAction.isHidden = false
cell.footer..secondaryAction.setTitle("Secondary", for: .normal)