FUIItemCollectionViewCell
@IBDesignable
open class FUIItemCollectionViewCell : FUIBaseItemCollectionViewCell<FUICollectionItemView>
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"
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;
-
Determines if cell will maintain the space for an image. By default, this property is set to
false
Declaration
Swift
public var isPreservingImageSpacing: Bool { get set }
-
ImageView of
FUICollectionItemCell
.Declaration
Swift
@available(*, deprecated, renamed: "detailImageView") @IBInspectable public var contentImageView: FUIImageView { get }
-
Label of
FUICollectionItemCell
.Declaration
Swift
@available(*, deprecated, renamed: "title") public var titleLabel: FUIText { get }
-
Image of
FUICollectionItemCell
Declaration
Swift
@available(*, deprecated, renamed: "detailImageView") @IBInspectable public var contentImage: UIImage? { get set }
-
Title of
FUICollectionItemCell
Declaration
Swift
@available(*, deprecated, renamed: "title") @IBInspectable public var titleText: String? { get set }