Skip to content

Drop in customizable color picker with material color support.

License

Notifications You must be signed in to change notification settings

gkye/MaterialColorPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
George Kye
Sep 28, 2016
2e6e08f · Sep 28, 2016

History

36 Commits
Sep 28, 2016
Sep 28, 2016
Sep 28, 2016
Jun 9, 2016
Sep 28, 2016
Sep 28, 2016
Jun 9, 2016

Repository files navigation

MaterialColorPicker

codebeat badge Version License Platform

Demo Gif

Installation

MaterialColorPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MaterialColorPicker"

Usage

Delegate

func didSelectColorAtIndex(view: UIView, index: Int, color: UIColor)

Returns the index and color of the selected item.

 func sizeForCellAtIndex(MaterialColorPickerView: MaterialColorPicker, index: Int)->CGSize

Set size of cell at a spefic index

DataSource

func colors()->[UIColor]

Set colors for MaterialColorPicker (Default colors will be used if no dataSource set) google-material-color-swift by katopz included in project

Properties

public var shuffleColors: Bool = false //Shuffles colors within ColorPicker
public func selectCellAtIndex(index: Int)

Programtically select a cell at an index

Author

George Kye

License

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

Change Log

0.2.0

  • Updated project to support swift3
  • Updated demo project to reflect changes

0.1.8

  • Added public selectionColor property.
  • Added selectedBorderWidth property.
  • Added cellSpacing property.

0.1.6

  • Added selectCellAtIndex function and sizeForCellAtIndex delegate

0.1.5

  • Added itemSize public property to allow configuration of color picker cell.

About

Drop in customizable color picker with material color support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published