Item Collection View Cell¶
FUIItemCollectionViewCell
¶
open class FUIItemCollectionViewCell: FUIBaseItemCollectionViewCell<FUICollectionItemView>, FUIContentCopyable
UICollectionViewCell
subclass used for displaying business objects in a collectionView
.
Developer should use the FUICollectionItemView
and FUIBaseItemCollectionViewCell
API set to build the view.
Usage¶
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: FUICollectionItemCell.reuseIdentifier, for: indexPath) as! FUICollectionItemCell
cell.itemSize = .small
cell.detailImageView.image = UIImage(named: "profile")
cell.detailImageView.isCircular = true
cell.title.text = "Franck Syren"
cell.subtitle.text = "Java Developer"
cell.status.text = "Available"
cell.actionLayout = .pair
cell.primaryButton.setImage(img, for: .normal)
cell.secondaryButton.setImage(img, for: .normal)
return cell
Theming¶
nuiClass
:
fdlFUIItemCollectionViewCell {}
Supported TEXT
class paths:
fdlFUIItemCollectionViewCell_title {}
fdlFUIItemCollectionViewCell_subtitle {}
fdlFUIItemCollectionViewCell_status {}
fdlFUIItemCollectionViewCell_placeholder {}
Supported TEXT
properties:
font-color: Color;
font-style: UIFontTextStyle;
text-line-clamp: Integer;
text-align: NSTextAlignment;
Supported IMAGE
class paths:
fdlFUIItemCollectionViewCell_detailImageView {}
Supported IMAGE
properties:
tint-color: Color;
Last update: April 14, 2021