Latest 1.0
Homepage https://github.com/cyan-drop/TSColorPalette
License MIT
Platforms ios 12.1, requires ARC
Authors

Overview

You can select colors from 36color palettes.

Description

It is a palette that allows users to easily select colors, and palette colors are chosen to be easy to see with texts and graphs.

This is useful when the user selects a color, especially when you want to use many colors like labeling.

Usage

This library is created with the assumption of using a storyboard.

  1. After placing the ViewController on the storyboard, inherit the PastelColorPaletteViewController and PastelColorPaletteView class using the Attribute inspector.
  2. Please set a delegate for the object you want to notify.

    //example
    let pastelColorPaletteVC = PastelColorPaletteViewController()
    pastelColorPaletteVC.delegate = self
  3. You can also set the processing you want to execute when receiving notifications.

    //example
    func paletteViewController(color: UIColor){
        self.backgroundColor = color
        print(color.debagScription)
    }

Install

Installing with CocoaPods
CocoaPods is a centralised dependency manager that automates the process of adding libraries to your Cocoa application. You can install it with the following command:

$ gem update
$ gem install cocoapods
$ pods --version

Licence

MIT

Latest podspec

{
    "name": "TSColorPalette",
    "version": "1.0",
    "summary": "You can select colors from 36color palettes.",
    "description": "It is a palette that allows users to easily select colors, and palette colors are chosen to be easy to see with texts and graphs.This is useful when the user selects a color, especially when you want to use many colors like labeling.",
    "homepage": "https://github.com/cyan-drop/TSColorPalette",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cyan-drop": "[email protected]"
    },
    "social_media_url": "http://twitter.com/cyan_twilight",
    "platforms": {
        "ios": "12.1"
    },
    "source": {
        "git": "https://github.com/cyan-drop/TSColorPalette.git",
        "tag": "1.0"
    },
    "source_files": "TSColorPalette/**/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This