maximbilan / CheckMarkView

UI view which draws programmatically a checkmark with different styles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CheckMarkView

Version License Platform CocoaPods CocoaPods

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

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.

About

UI view which draws programmatically a checkmark with different styles

License:MIT License


Languages

Language:Swift 94.0%Language:Ruby 6.0%