CheckMarkView 0.4.3

CheckMarkView 0.4.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2018
SPMSupports SPM

Maintained by Maxim Bilan.



  • By
  • Maxim Bilan

CheckMarkView

Version License Platform CocoaPods CocoaPods

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

alt tag

Installation

CocoaPods:

pod 'CheckMarkView'

Manual:

Copy CheckMarkView.swift to your project.

Using

You can create from code or setup view in the Storyboard, XIB.

let checkMarkView = CheckMarkView()

For controlling you have checked property. And style property for 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.