Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maximbilan/checkmarkview

UI view which draws programmatically a checkmark with different styles
https://github.com/maximbilan/checkmarkview

checkmark ios ios-app ios-swift swift ui ui-components ui-design uikit

Last synced: about 1 month ago
JSON representation

UI view which draws programmatically a checkmark with different styles

Awesome Lists containing this project

README

        

# CheckMarkView

[![Version](https://img.shields.io/cocoapods/v/CheckMarkView.svg?style=flat)](http://cocoadocs.org/docsets/CheckMarkView)
[![License](https://img.shields.io/cocoapods/l/CheckMarkView.svg?style=flat)](http://cocoadocs.org/docsets/CheckMarkView)
[![Platform](https://img.shields.io/cocoapods/p/CheckMarkView.svg?style=flat)](http://cocoadocs.org/docsets/CheckMarkView)
[![CocoaPods](https://img.shields.io/cocoapods/dt/CheckMarkView.svg)](https://cocoapods.org/pods/CheckMarkView)
[![CocoaPods](https://img.shields.io/cocoapods/dm/CheckMarkView.svg)](https://cocoapods.org/pods/CheckMarkView)

Unfortunately Apple doesn't provide an accessory type property for UICollectionViewCell, such as for UITableViewCell, so I provide a custom way to create a checkmark.
A just a simple view which draws programmatically a checkmark with some styles.

![alt tag](https://raw.github.com/maximbilan/CheckMarkView/master/img/img1.png)

# Installation

CocoaPods:


pod 'CheckMarkView'

Manual:


Copy CheckMarkView.swift to your project.

## Using

You can create from the code or set up a view in the Storyboard, XIB.


let checkMarkView = CheckMarkView()

For controlling you have checked property.
And style property for the unchecked view. There are some styles:


enum CheckMarkStyle: Int {
case nothing
case openCircle
case grayedOut
}

## License

CheckMarkView is available under the MIT license. See the LICENSE file for more info.