Skip to content

Image Collection Item View

FUIImageCollectionItemView

open class FUIImageCollectionItemView: FUIDrawingView, FUIDetailImageViewComponent

View component of FUIImageCollectionViewCell. Typically not used directly by developer.

Usage

1
2
3
4
5
6
7
let itemView = FUIImageCollectionItemView()
itemView.detailImageView.image = UIImage(named: "profile")
// To enable a default gradient layer behind the placeholder text.
itemView.detailImageView.isGradientLayerEnabled = true
// Set placeholder text.
itemView.detailImageView.placeholder.text = "This is a placeholder"
itemView.detailImageViewSize = CGSize(width: 90, height: 90)

Theming

nuiClass:

1
fdlFUIImageCollectionItemView {}

Supported IMAGE class paths:

1
fdlFUIImageCollectionItemView_detailImageView {}

Supported IMAGE properties:

1
tint-color: Color;

Last update: December 8, 2020