Class
ADThumbnailListCell
public class ADThumbnailListCell: UICollectionViewCell
Cell for display asset in thumbnail controller.
Relationships
Nested Types
ADThumbnailListCell.Key
Key for attribute.
ADThumbnailListCell.State
State of cell.
ADThumbnailListCell.Appearance
Appearance of cell.
Conforms To
ADThumbnailCellConfigurable
Use to define thumbnail controller's collection view cell.
UICollectionViewCell
Properties
selectAction
public var selectAction: ((ADThumbnailCellable,Bool)->Void)?
Called when cell select or deselect. The parameter Bool
represent asset is selet or not.
Methods
configure(with:)
public func configure(with model: ADAssetModel)
Config cell with asset model.
Parameters
Name | Type | Description |
---|---|---|
model | ADAssetModel |
Asset info. |
setAttributes(_:)
@objc
public func setAttributes(_ attrs: [Key : Any]?)
You may specify the corner radius, index color, index font, desc font, and desc color properties for the cell in the attributes dictionary, using the keys found in ADThumbnailListCell.Key
.
Parameters
Name | Type | Description |
---|---|---|
attrs | [Key : Any]? |
Attributes dictionary. |
setAppearance(_:for:)
public static func setAppearance(_ appearance: Appearance, for state: State)
Config appearance for diffent cell state.
Parameters
Name | Type | Description |
---|---|---|
appearance | Appearance |
Appearance of cell. |
state | State |
State of cell. |