CheckmarkCollectionViewCell

UICollectionViewCell with Checkbox when it isSelected and empty circle when not - like Photos.app "Select" mode.

Usage

class MyCell: CheckmarkCollectionViewCell {
    // get checkmark for free
}

Changing Appearance

Shape:

cell.selectedImage = UIImage(named: "x")
cell.deselectedImage = UIImage(named: "o")

Color:

cell.tintColor = .red

Size:

cell.checkmarkSize = 42.0

Layout:

cell.checkmarkMargin = 17.0
cell.checkmarkLocation = [.top, .left]

Installation

CocoaPods:

pod 'CheckmarkCollectionViewCell'

GitHub