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.
- After placing the ViewController on the storyboard, inherit the
PastelColorPaletteViewController
andPastelColorPaletteView
class using the Attribute inspector. -
Please set a delegate for the object you want to notify.
//example let pastelColorPaletteVC = PastelColorPaletteViewController() pastelColorPaletteVC.delegate = self
-
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
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 }
Fri, 08 Feb 2019 11:11:17 +0000