Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yonat/CheckmarkCollectionViewCell
UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app "Select" mode.
https://github.com/yonat/CheckmarkCollectionViewCell
checkmark selection swift uicollectionview uicollectionviewcell
Last synced: about 1 month ago
JSON representation
UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app "Select" mode.
- Host: GitHub
- URL: https://github.com/yonat/CheckmarkCollectionViewCell
- Owner: yonat
- License: mit
- Created: 2018-10-08T13:17:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T17:46:10.000Z (8 months ago)
- Last Synced: 2024-10-06T16:16:21.509Z (2 months ago)
- Topics: checkmark, selection, swift, uicollectionview, uicollectionviewcell
- Language: Swift
- Homepage:
- Size: 113 KB
- Stars: 65
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
- fucking-awesome-swift - CheckmarkCollectionViewCell - UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app 'Select' mode. (Libs / UI)
- awesome-swift - CheckmarkCollectionViewCell - UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app 'Select' mode. (Libs / UI)
- awesome-cocoa - CheckmarkCollectionViewCell
- awesome-swift - CheckmarkCollectionViewCell - UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app 'Select' mode. ` 📝 a year ago` (UI [🔝](#readme))
- awesome-swift - CheckmarkCollectionViewCell - UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app 'Select' mode. (Libs / UI)
README
# CheckmarkCollectionViewCell
[![Swift Version][swift-image]][swift-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/CheckmarkCollectionViewCell.svg)](https://img.shields.io/cocoapods/v/CheckmarkCollectionViewCell.svg)
[![Platform](https://img.shields.io/cocoapods/p/CheckmarkCollectionViewCell.svg?style=flat)](http://cocoapods.org/pods/CheckmarkCollectionViewCell)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)`UICollectionViewCell` with checkbox when it `isSelected` and empty circle when not - like Photos.app "Select" mode.
## Usage
```swift
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:
```swift
cell.selectedImage = UIImage(named: "x")
cell.deselectedImage = UIImage(named: "o")
```Color:
```swift
cell.tintColor = .red
```Size:
```swift
cell.checkmarkSize = 42.0
```Layout:
```swift
cell.checkmarkMargin = 17.0
cell.checkmarkLocation = [NSLayoutConstraint.Attribute.top, NSLayoutConstraint.Attribute.left]
```## Installation
### CocoaPods:
```ruby
pod 'CheckmarkCollectionViewCell'
```### Swift Package Manager:
```swift
dependencies: [
.package(url: "https://github.com/yonat/CheckmarkCollectionViewCell", from: "1.0.9")
]
```## Meta
[@yonatsharon](https://twitter.com/yonatsharon)
[https://github.com/yonat/CheckmarkCollectionViewCell](https://github.com/yonat/CheckmarkCollectionViewCell)
[swift-image]:https://img.shields.io/badge/swift-4.2-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE.txt
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[codebeat-image]: https://codebeat.co/badges/c19b47ea-2f9d-45df-8458-b2d952fe9dad
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com