UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app "Select" mode.
classMyCell:CheckmarkCollectionViewCell{
// get checkmark for free
}The properties below can be set in Interface Builder, in code, or through a UIAppearance proxy (e.g., CheckmarkCollectionViewCell.appearance().deselectedImage = nil).
Shape:
cell.selectedImage =UIImage(named:"x")
cell.deselectedImage =UIImage(named:"o")Color:
cell.tintColor =.redSize:
cell.checkmarkSize =42.0Layout:
cell.checkmarkMargin =17.0
cell.checkmarkLocation =[NSLayoutConstraint.Attribute.top,NSLayoutConstraint.Attribute.left]pod'CheckmarkCollectionViewCell'dependencies:[.package(url:"https://github.com/yonat/CheckmarkCollectionViewCell", from:"1.1.0")]