Latest 1.0.1
Homepage https://github.com/yonat/CheckmarkCollectionViewCell
License MIT
Platforms ios 9.3, requires ARC
Dependencies MiniLayout
Authors

CheckmarkCollectionViewCell

Swift Version
Build Status
License
CocoaPods Compatible
Platform
PRs Welcome

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'

Manually:

Copy Sources/CheckmarkCollectionViewCell.swift and MiniLayout.swift to your Xcode project.

Meta

@yonatsharon

https://github.com/yonat/CheckmarkCollectionViewCell

Latest podspec

{
    "name": "CheckmarkCollectionViewCell",
    "version": "1.0.1",
    "summary": "UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app Select mode.",
    "homepage": "https://github.com/yonat/CheckmarkCollectionViewCell",
    "screenshots": "https://raw.githubusercontent.com/yonat/CheckmarkCollectionViewCell/master/Screenshots/CheckmarkCollectionViewCell.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Yonat Sharon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/yonatsharon",
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.3"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/yonat/CheckmarkCollectionViewCell.git",
        "tag": "1.0.1"
    },
    "source_files": "Sources/*.swift",
    "dependencies": {
        "MiniLayout": []
    },
    "subspecs": [
        {
            "name": "Resources",
            "resource_bundles": {
                "CheckmarkCollectionViewCell": "Sources/*.png"
            }
        }
    ]
}

Pin It on Pinterest

Share This