Skip to content

valery-bashkatov/ColorCircle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorCircle

ColorCircle is a control for color selection.

ColorCircle Image

Requirements

  • iOS 9.0+
  • Swift 4.1+

Dependencies

Installation

Carthage

To integrate ColorCircle into your project using Carthage, specify it in your Cartfile:

github "valery-bashkatov/ColorCircle" ~> 3.0.0

And then follow the instructions to install the framework and its dependencies.

Documentation

API Reference is located at http://valery-bashkatov.github.io/ColorCircle.

Usage

import ColorCircle

let colorCircle = ColorCircle()

colorCircle.frame = CGRect(x: 100, y: 100, width: 200, height: 200)
colorCircle.addTarget(self, action: #selector(changeColor), for: .valueChanged)

view.addSubview(colorCircle)

func changeColor() {
    print(colorCircle.color)
}