CheckmarkCollectionViewCell
UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app "Select" mode.
Install / Use
/learn @yonat/CheckmarkCollectionViewCellREADME
CheckmarkCollectionViewCell
<img align="right" src="Screenshots/CheckmarkCollectionViewCell.png">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
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 = .red
Size:
cell.checkmarkSize = 42.0
Layout:
cell.checkmarkMargin = 17.0
cell.checkmarkLocation = [NSLayoutConstraint.Attribute.top, NSLayoutConstraint.Attribute.left]
Installation
CocoaPods:
pod 'CheckmarkCollectionViewCell'
Swift Package Manager:
dependencies: [
.package(url: "https://github.com/yonat/CheckmarkCollectionViewCell", from: "1.1.0")
]
Meta
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
