Chameleon——輕量級(jí) iOS 顏色框架

Chameleon by Vicc Alexander

Swift 3

To use the Swift 3 version, add this to your Podfile (until 2.2 or higher is released):

pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'

Introduction 介紹

Chameleon is a lightweight, yet powerful, color framework for iOS (Objective-C & Swift). It is built on the idea that software applications should function effortlessly while simultaneously maintaining their beautiful interfaces.

With Chameleon, you can easily stop tinkering with RGB values, wasting hours figuring out the right color combinations to use in your app, and worrying about whether your text will be readable on the various background colors of your app.

Chameleon 是一個(gè)輕量卻功能強(qiáng)大的 iOS (支持 Objective-C 和 Swift)顏色框架軟件。它基于的理念是:軟件應(yīng)用程序應(yīng)該可以不費(fèi)力氣且同時(shí)保持多個(gè)漂亮的界面。

使用 Chameleon ,你不再需要調(diào)配 RGB 值,不用浪費(fèi)時(shí)間去找你的 APP 合適的顏色組合,也不用擔(dān)心你 APP 的文字是否能在不同背景色上可讀。

Features 特性

Features

App Showcase 應(yīng)用程序展示

In an upcoming update we'll begin showcasing some of the best apps and companies making use of Chameleon. If you'd like to see your app featured in this section, make sure to add it here.

Table of Contents 目錄

● Product Features
● Requirements
● License
● Contributions
● Documentation
● Storyboard Add-On
● Author
● To Do List
● Change Log

?? Product Features 特性

100% Flat & Gorgeous

Chameleon features over 24 hand-picked colors that come in both light and dark shades.

Chameleon 擁有超過(guò)24種手工選擇的顏色,可以設(shè)置淺色和深色色調(diào)。

Swatches

Flat Color Schemes 扁平顏色方案

Chameleon equips you with 3 different classes of flat color schemes that can be generated from a flat or non-flat color. In the examples below, the white stars indicate the color used to generate the schemes.

Chameleon 配備3種不同類型的平面顏色方案,可以從扁平或非扁平顏色生成。 在下面的示例中,白色星星表示用于生成方案的顏色

Analogous Flat Color Scheme 類似扁平顏色方案
Analogous Scheme
Complementary Flat Color Scheme 互補(bǔ)扁平顏色方案
Complementary Scheme
Triadic Flat Color Scheme 三元群扁平顏色方案
Triadic Scheme

Contrasting Text 對(duì)比文本

With a plethora of color choices available for text, it's difficult to choose one that all users will appreciate and be able to read. Whether you're in doubt of your text and tint color choices, or afraid to let users customize their profile colors because it may disturb the legibility or usability of the app, you no longer have to worry. With Chameleon, you can ensure that all text stands out independent of the background color.

Oh... Chameleon works with the status bar as well. : )

隨著文字的色彩選擇過(guò)多,很難選擇所有用戶將會(huì)欣賞并能夠閱讀的顏色。 無(wú)論您是否懷疑您的文字和色彩的顏色選擇,或害怕讓用戶自定義自己的個(gè)人資料顏色,因?yàn)樗赡軙?huì)打擾應(yīng)用程序的易讀性或可用性,您不用擔(dān)心。 使用 Chameleon,您可以確保所有文本獨(dú)立于背景顏色。

哦,Chameleon 還可以與狀態(tài)欄一起工作。 :)

Status Bar

Themes
Beta
主題

Chameleon now allows you easily theme your app with as little as one line of code. You can set a theme for all your views, and for specific views as well.

Themes

Colors From Images 從圖片中生成顏色

Chameleon allows you to seamlessly extract non-flat or flat color schemes from images without hassle. You can also generate the average color from an image with ease. You can now mold the UI colors of a profile, or product based on an image!

Colors from images

Gradient Colors 漸變色

With iOS 7 & 8, Apple mainstreamed flat colors. Now, with the release of iOS 9, Chameleon strives to elevate the game once more. Say hello to gradient colors. Using one line of code, you can easily set any object's color properties to a gradient (background colors, text colors, tint colors, etc). Other features, like Chameleon's contrasting feature, can also be applied to create a seamless product. Experimentation is encouraged, and gutsiness is applauded!

隨著iOS 7和8的發(fā)布,蘋果推崇扁平色。 現(xiàn)在,隨著iOS 9的發(fā)布,變色龍致力于提升游戲次數(shù)。 對(duì)漸變顏色問(wèn)好。 使用一行代碼,您可以輕松地將任何對(duì)象的顏色屬性設(shè)置為漸變(背景顏色,文本顏色,色調(diào)顏色等)。 其他功能,如變色龍的對(duì)比功能,也可以應(yīng)用于創(chuàng)建一個(gè)無(wú)縫的產(chǎn)品。 鼓勵(lì)實(shí)驗(yàn),鼓掌!

Gradients

Xcode Quick Help Documentation Xcode 快速幫助文檔

Chameleon's documentation, while written as clearly and concisely as possible may still render some slightly confused. But don't fret! Staying true to our vision of simplifying the entire color process, we added Xcode Quick Help's Documentation Support! Simply highlight a Chameleon method or tap it with three fingers to find out more about what it is and what it does!

Xcode Quick Help Documentation

Palettes 調(diào)色板

If you're like us and love to use storyboards, Chameleon's got you covered. We've provided you with a quick and easy way to access Chameleon colors right from Storyboard, and any other app that uses the color picker (i.e. TextEdit). In addition you can even import the palette directly into Photoshop Android Ske

如果你像我們一樣喜歡使用 storyboards,變色龍的讓你得到了保護(hù)。 我們?yōu)槟峁┝艘粋€(gè)快速簡(jiǎn)單的方法來(lái)從storyboards 和任何其他使用顏色選擇器(即TextEdit)的應(yīng)用程序訪問(wèn)Chameleon顏色。 此外,您甚至可以將調(diào)色板直接導(dǎo)入 PhotoshopSketch

Chameleon Palette
Chameleon Palette

?? Requirements 最低配置需求

  • Objective-C or Swift
  • Requires a minimum of iOS 7.0 for Objective-C (No active development for anything earlier, but may work with 6.0) and a minimum of iOS 8.0 for Swift.
  • Requires Xcode 6.3 for use in any iOS Project

?? License

Chameleon is released and distributed under the terms and conditions of the MIT license.

?? Contributions

If you run into problems, please open up an issue. We also actively welcome pull requests. By contributing to Chameleon you agree that your contributions will be licensed under its MIT license.

If you use Chameleon in your app we would love to hear about it! Drop Vicc a line on twitter.

?? Documentation 文檔

All methods, properties, and types available in Chameleon are documented below.

Documentation Table of Contents

● Installation
● Palettes
● Usage
● UIColor Methods
● Colors From Images
● UIStatusBarStyle Methods
● Color Scheme Methods
● Theme Methods

Installation 安裝

Note: Swift 3 version maintained in a separate branch until it's release.

CocoaPods Installation

Chameleon is now available on CocoaPods. Simply add the following to your project Podfile, and you'll be good to go.

Objective-C
use_frameworks!

pod 'ChameleonFramework'
Swift
use_frameworks!

pod 'ChameleonFramework/Swift'

=======

Carthage Installation

Add this to your Cartfile:

github "ViccAlexander/Chameleon"

=======

Manual Installation

If you rather install this framework manually, just drag and drop the Chameleon folder into your project, and make sure you check the following boxes. Note: Don't forget to manually import the QuartzCore & CoreGraphics framework if you plan on using gradient colors!

<p align="center">


Manual Installation

</p>

If you're working with Swift and are manually installing Chameleon, there's an additional step. Make sure to download and drag the following file, ChameleonShorthand.swift, into your project, and you'll be good to go.

Palettes 調(diào)色板

Storyboard Add-On 添加到 Storyboard

Using Chameleon's awesome palette in Storyboard is easy! Simply download and install Chameleon Palette.

Once installed, make sure to restart Xcode. You'll find all of Chameleon's colors in the Palette Color Picker whenever they're needed! :)

Chameleon Palette
Chameleon Palette

Photoshop Add-On 添加到 Photoshop

Using Chameleon's awesome palette in Sketch is easy! Simply download and install Photoshop Palette.

Sketch Add-On 添加到 Sketch

Using Chameleon's awesome palette in Sketch is easy! Simply download and install Sketch Palette.

Usage 使用

To use the myriad of features in Chameleon, include the following import:

要使用 Chameleon 中的無(wú)數(shù)功能,請(qǐng)導(dǎo)入:

If you installed Chameleon using CocoaPods:
Objective-C
#import <ChameleonFramework/Chameleon.h>
Swift:
import ChameleonFramework
If you installed Chameleon using Carthage:
import Chameleon
If you installed Chameleon manually:
#import "Chameleon.h"

UIColor 方法

● Flat Colors
● Random Colors
● Complementary Colors
● Contrasting Colors
● Flattening Non-Flat Colors
● Gradient Colors
● Hex Colors
● Lighter & Darker Colors

Flat Colors 扁平色

Using a flat color is as easy as adding any other color in your app (if not easier). For example, to set a view's background property to a flat color with a dark shade, you simply have to do the following:

使用扁平色與在應(yīng)用中添加任何其他顏色一樣簡(jiǎn)單(如果不容易)。 例如,要將視圖的背景屬性設(shè)置為帶有陰影的平面顏色,您只需執(zhí)行以下操作:

Normal Convention: 正常語(yǔ)法
Objective-C
self.view.backgroundColor = [UIColor flatGreenColorDark];
Swift
view.backgroundColor = UIColor.flatGreenDark
Chameleon Shorthand: 速寫語(yǔ)法
Objective-C
self.view.backgroundColor = FlatGreenDark;
Swift
view.backgroundColor = FlatGreenDark()

Setting the color for a light shade is the same, except without adding the Dark suffix. (By default, all colors without a Dark suffix are light shades). For example:

設(shè)置 light shade 顏色是一樣的,除了不添加 Dark 后綴。 (默認(rèn)情況下,所有沒(méi)有 Dark 后綴的顏色都是淺色調(diào))。 例如:

Normal Convention:
Objective-C
self.view.backgroundColor = [UIColor flatGreenColor];
Swift
view.backgroundColor = UIColor.flatGreen
Chameleon Shorthand:
Objective-C
self.view.backgroundColor = FlatGreen;
Swift
view.backgroundColor = FlatGreen()

Random Colors 隨機(jī)色

There are four ways to generate a random flat color. If you have no preference as to whether you want a light shade or a dark shade, you can do the following:

有四種方法來(lái)生成隨機(jī)扁平色。 如果您沒(méi)有偏好是否需要遮光或暗色,可以執(zhí)行以下操作:

Normal Convention:
Objective-C
self.view.backgroundColor = [UIColor randomFlatColor];
Swift
view.backgroundColor = UIColor.randomFlat
Chameleon Shorthand:
Objective-C
self.view.backgroundColor = RandomFlatColor;
Swift
view.backgroundColor = RandomFlatColor()

Otherwise, you can perform the following method call to specify whether it should return either a light or dark shade:

否則,您可以執(zhí)行以下方法調(diào)用以指定是否應(yīng)返回亮或暗的陰影:

Normal Convention:
Objective-C
[UIColor colorWithRandomFlatColorOfShadeStyle:UIShadeStyleLight];
Swift
UIColor(randomFlatColorOfShadeStyle:.Light)
Chameleon Shorthand:
Objective-C
RandomFlatColorWithShade(UIShadeStyleLight);
Swift
RandomFlatColorWithShade(.Light)

UIShadeStyles:

  • UIShadeStyleLight (UIShadeStyle.Light in Swift)
  • UIShadeStyleDark (UIShadeStyle.Dark in Swift)
Choosing A Random Color From a List of Colors
New
從顏色列表中選擇隨機(jī)顏色

If you need to be a bit more selective and only display a random color from a set list of colors, you can use the following method:

如果您需要更有選擇性,并且只能從設(shè)置的顏色列表中顯示隨機(jī)顏色,則可以使用以下方法:

Normal Convention:
Objective-C
[UIColor colorWithRandomColorInArray:@[FlatWhite, FlatRed, FlatBlue]];
Swift
TBA
Chameleon Shorthand:
Objective-C
RandomFlatColorInArray(@[FlatWhite, FlatRed, FlatBlue]) 
Swift
TBA
Choosing A Random Flat Color But Excluding A Few
New
選擇隨機(jī)扁平色,但不包括少量

Last but certainly not least, you can also choose form the list of random colors and exclude the ones you don't want. For example say you want to randomly select a flat color for a user's profile, but don't want to use any blacks, grays, or whites. You can simply do:

Normal Convention:
Objective-C
[UIColor colorWithRandomFlatColorExcludingColorsInArray:@[FlatBlack, FlatBlackDark, FlatGray, FlatGrayDark, FlatWhite, FlatWhiteDark]];
Swift
TBA
Chameleon Shorthand:
Objective-C
RandomFlatColorExcluding(@[FlatBlack, FlatBlackDark, FlatGray, FlatGrayDark, FlatWhite, FlatWhiteDark]) 
Swift
TBA

Complementary Colors 互補(bǔ)色

To generate a complementary color, perform the following method call, remembering to specify the color whose complement you want:

Normal Convention:
Objective-C
[UIColor colorWithComplementaryFlatColorOf:(UIColor *)someUIColor];
Swift
UIColor(complementaryFlatColorOf:someUIColor)
Chameleon Shorthand:
Objective-C
ComplementaryFlatColorOf(color);
Swift
ComplementaryFlatColorOf(color)

Contrasting Colors 對(duì)比顏色

The contrasting color feature returns either a dark color a light color depending on what the Chameleon algorithm believes is a better choice. You can specify whether the dark or light colors are flat: ([UIColor flatWhiteColor] & [UIColor flatBlackColorDark]) or non-flat ([UIColor whiteColor] & [UIColor blackColor]).

If you're trying to set a UILabel's textColor property, make sure you provide the UILabel's backgroundColor. If your label has a clear backgroundColor, just provide the backgroundColor property of the object directly behind the UILabel.

Here's an example:

Normal Convention:
Objective-C
[UIColor colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor isFlat:(BOOL)flat];
Swift
UIColor(contrastingBlackOrWhiteColorOn:UIColor!, isFlat:Bool)
Chameleon Shorthand:
Objective-C
ContrastColor(backgroundColor, isFlat);
Swift
ContrastColor(backgroundColor, isFlat)

Flattening Non-Flat Colors 扁平的非平面顏色

As mentioned previously, this feature is unique to Chameleon. While this feature is in its early stages of operation and can be improved, it is accurate in finding the nearest flat version of any color in the spectrum, and very simple to use:

如前所述,這個(gè)功能是變色龍獨(dú)有的。 雖然此功能處于早期操作階段,可以改進(jìn),但是在找到最近的平面版本的任何顏色的頻譜是準(zhǔn)確的,并且使用非常簡(jiǎn)單:

Normal Convention:
Objective-C
[(UIColor *)color flatten];
Swift
UIColor.pink.flatten()

Gradient Colors 漸變顏色

Using a gradient to color an object usually requires a couple of lines of code plus many more lines to superimpose smart contrasting text. Thankfully, Chameleon takes care of that for you. We've introduced a new way to have multicolored objects, and that's with gradients!

Gradient Styles 漸變樣式

Chameleon provides three simple gradient styles. Gradients can be created from any number of colors you desire as long as at least two colors are provided. Don't forget that the contrasting text feature is also compatible with gradient colors!

UIGradientStyles:

  • UIGradientStyleLeftToRight (UIGradientStyle.LeftToRight in Swift)
  • UIGradientStyleTopToBottom (UIGradientStyle.TopToBottom in Swift)
  • UIGradientStyleRadial (UIGradientStyle.Radial in Swift)
Normal Convention:
Objective-C
[UIColor colorWithGradientStyle:(UIGradientStyle)gradientStyle withFrame:(CGRect)frame andColors:(NSArray<UIColor *> *)colors];
Swift
UIColor(gradientStyle:UIGradientStyle, withFrame:CGRect, andColors:[UIColor])
Chameleon Shorthand:
Objective-C
GradientColor(gradientStyle, frame, colors);
Swift
GradientColor(gradientStyle, frame, colors)

Objective-C Note: If you use the Chameleon Shorthand, and use the NSArray literal @[] to set the array of colors, make sure you add parenthesis around it, or else you'll get an error.

Note: UIGradientStyleRadial only uses a maximum of 2 colors at the moment. So if more colors are provided, they will not show.

如果你使用Chameleon Shorthand 短語(yǔ)法,并使用 NSArray 的字面量語(yǔ)法@[ ]設(shè)置顏色數(shù)組,請(qǐng)確保在其周圍添加圓括號(hào),否則您將收到錯(cuò)誤。

Hex Colors 十六進(jìn)制顏色

One of the most requested features, hex colors, is now available. You can simply provide a hex string with or without a # sign:

Normal Convention:
Objective-C
[UIColor colorWithHexString:(NSString *)string];
Swift
UIColor(hexString:string)
Chameleon Shorthand:
Objective-C
HexColor(hexString)
Swift
HexColor(hexString)

Hex Values
New
十六進(jìn)制值

Retrieving the hexValue of a UIColor is just as easy.

檢索 UIColor 的“十六進(jìn)制值”同樣簡(jiǎn)單。

Objective-C
[FlatGreen hexValue]; //Returns @"2ecc71"
Swift
FlatGreen.hexValue //Returns @"2ecc71"

Lighter and Darker Colors 淡化和暗化顏色

Sometimes all you need is a color a shade lighter or a shade darker. Well for those rare, but crucial moments, Chameleon's got you covered. You can now lighten any color the following way:

Normal Convention:
Objective-C
[color lightenByPercentage:(CGFloat)percentage];
Swift
color.lightenByPercentage(percentage: CGFloat)

You can also generate a darker version of a color:

Normal Convention:
Objective-C
[color darkenByPercentage:(CGFloat)percentage];
Swift
color.darkenByPercentage(percentage: CGFloat)

Colors From Images 從圖片中提取顏色

Chameleon now supports the extraction of colors from images. You can either generate both flat and non-flat color schemes from an image, or easily extract the average color.

To generate a color scheme simply do the following:

Normal Convention:
Objective-C
[NSArray arrayOfColorsFromImage:(UIImage *)image withFlatScheme:(BOOL)flatScheme];
Swift (Array extension missing)
NSArray(ofColorsFromImage: UIImage, withFlatScheme: Bool)
Chameleon Shorthand:
Objective-C
ColorsFromImage(image, isFlatScheme)
Swift
ColorsFromImage(image, isFlatScheme)

To extract the average color from an image, you can also do:

Normal Convention:
Objective-C
[UIColor colorWithAverageColorFromImage:(UIImage *)image];
Swift
UIColor(averageColorFromImage: UIImage)
Chameleon Shorthand:
Objective-C
AverageColorFromImage(image)
Swift
AverageColorFromImage(image)

UIStatusBarStyle Methods 狀態(tài)欄樣式方法

Contrasting UIStatusBarStyle

Many apps on the market, even the most popular ones, overlook this aspect of a beautiful app: the status bar style. Chameleon has done something no other framework has... it has created a new status bar style: UIStatusBarStyleContrast. Whether you have a ViewController embedded in a NavigationController, or not, you can do the following:

Normal Convention:
Objective-C
[self setStatusBarStyle:UIStatusBarStyleContrast];
Swift
self.setStatusBarStyle(UIStatusBarStyleContrast)
Note: Make sure that the key View controller-based status bar appearance in Info.plist is set to YES.

參考:iOS狀態(tài)欄的管理

Color Schemes Methods 顏色方案方法

Note: Due to the limited number of flat colors currently available, color schemes may return results that reuse certain flat colors. Because of this redundancy, we have provided an option to return either a flat color scheme or a non-flat color scheme until more flat colors are added to the inventory.

The initial color can be either a non-flat color or flat color. Chameleon will return an NSArray of 5 UIColors in which the original color will be the third object of the scheme. This allows for Chameleon to designate the colors of the color scheme (2 colors counter-clockwise and 2 clockwise from the initial color), and thus, the chosen colors are aligned specifically in that order.

Analogous Color Scheme 類比顏色方案

An analogous color scheme uses three adjacent colors on the color wheel. According to Wikipedia, it’s best used with either warm or cool colors, creating a cohesive collection with certain temperature qualities as well as proper color harmony; however, this particular scheme lacks contrast and is less vibrant than complementary schemes. Within the scheme, choose one color to dominate and two to support. The remaining two colors should be used (along with black, white or gray) as accents.

Complementary Color Scheme 互補(bǔ)配色方案

A complementary color scheme uses opposite colors on the color wheel. To put into slightly more technical terms, they are two colors that, when combined, produce a neutral color. Complementary colors are tricky to use extensively, but work well when you want a point of emphasis. Complementary colors are generally not favorable to use for text.

Triadic Color Scheme 三色配色方案

A triadic scheme uses evenly spaced colors on the color wheel. The colors tend to be richly vivid and offer a higher degree of contrast while, at the same time, retain color harmony. Let one color dominate and use the two others for accent.

Getting Colors in a Color Scheme 在顏色方案中獲得顏色

To retrieve an array of colors, first make sure to initialize an NSMutableArray (in case you want to use the same array to replace with different colors later):

Normal Convention:
Objective-C
NSMutableArray *colorArray = [NSMutableArray alloc] initWithArray:[NSArray arrayOfColorsWithColorScheme:(ColorScheme)colorScheme 
                                                                                                    with:(UIColor *)color 
                                                                                             flatScheme:(BOOL)isFlatScheme]];
Swift
var colorArray = NSArray(ofColorsWithColorScheme:ColorScheme, with:UIColor!, flatScheme:Bool)
Chameleon Shorthand:
Objective-C
NSMutableArray *colorArray = [[NSMutableArray alloc] initWithArray:ColorScheme(colorSchemeType, color, isFlatScheme)];
Swift
var colorArray = ColorSchemeOf(colorSchemeType, color, isFlatScheme)
Example:

Assuming you want to generate an analogous color scheme for the light shade of Flat Red, perform the following method call:

Normal Convention:
Objective-C
NSMutableArray *colorArray = [NSMutableArray alloc] initWithArray:[NSArray arrayOfColorsWithColorScheme:ColorSchemeAnalogous
                                                                                                    with:[UIColor flatRedColor] 
                                                                                             flatScheme:YES]];
Swift
var colorArray = NSArray(ofColorsWithColorScheme:ColorScheme.Analogous, with:UIColor.flatRed, flatScheme:true)
Chameleon Shorthand:
Objective-C
NSMutableArray *colorArray = [[NSMutableArray alloc] initWithArray:ColorScheme(ColorSchemeAnalogous, FlatRed, YES)];
Swift
var colorArray = ColorSchemeOf(ColorScheme.Analogous, FlatRed(), true)

You can then retrieve each individual color the same way you would normally retrieve any object from an array:

Objective-C
UIColor *firstColor = colorArray[0];
Swift
var firstColor = colorArray[0] as! UIColor

Theme Methods 主題色

With Chameleon, you can now specify a global color theme with simply one line of code (It even takes care of dealing with the status bar style as well)! Here's one of three methods to get you started. ContentStyle allows you to decide whether text and a few other elements should be white, black, or whichever contrasts more over any UI element's backgroundColor.

使用變色龍,您現(xiàn)在可以使用簡(jiǎn)單的一行代碼指定全局顏色主題(甚至可以處理狀態(tài)欄樣式)! 這是啟動(dòng)您的三種方法之一。 ContentStyle 允許您決定文本和其他幾個(gè)元素是否應(yīng)該是白色,黑色或任何UI元素的 backgroundColor 之間的對(duì)比。

To set a global theme, you can do the following in your app delegate:

Normal Convention:
Objective-C
[Chameleon setGlobalThemeUsingPrimaryColor:(UIColor *)color withContentStyle:(UIContentStyle)contentStyle];

But what if you want a different theme for a specific UIViewController? No problem, Chameleon allows you to override the global theme in any UIViewController and UINavigationController, by simply doing the following:

Normal Convention:
Objective-C
//This would go in the controller you specifically want to theme differently
[self setThemeUsingPrimaryColor:FlatMint withSecondaryColor:FlatBlue andContentStyle:UIContentStyleContrast];
Note: In order for the status bar style to automatically be set using a theme, you need to make sure that the View controller-based status bar appearance key in Info.plist is set to NO.

Navigation Bar Hairline 導(dǎo)航欄線

No Hairline

As of 2.0.3 the navigation bar hairline view is no longer hidden by default. However, if you're seeking a true flat look (like the image above), you can hide the hairline at the bottom of the navigation bar by doing the following:

Objective-C
[self.navigationController setHidesNavigationBarHairline:YES];

//or

self.navigationController.hidesNavigationBarHairline = YES;
Swift
self.navigationController?.hidesNavigationBarHairline = true

?? Author

Chameleon was developed by Vicc Alexander (@ViccsMind) in 2014 using Objective-C. In 2015, full Swift support was implemented by @Bre7. Currently, it is being maintained by both @ViccAlexander and @Bre7.

?? To Do List

  • CocoaPods Support
    1.0.1
  • Table of Contents
    1.0.1
  • Storyboard Color Picker Add-On
    1.1.0
  • Xcode In-App Documentation
    1.1.0
  • Switch from RGB values over to HSB and LAB
    1.1.0
  • Gradient Colors
    1.1.0
  • Update GradientStyle & ShadeStyle Syntax
    1.1.1
  • Add Radial Gradient Support
    1.1.1
  • Fix Swift Conflict with initWithArray:for:flatScheme: method
    1.1.12
  • Swift Support
    1.1.3
  • Color Scheme From Images
    2.0.0
  • UIAppearance Convenience Methods
    2.0.0
  • Add option to hide NavigationBar hairline
    2.0.3
  • Add support for App Extensions hairline
    2.2.0
  • Add Swift Support for Random Colors
  • Allow Gradient Colors to Adapt To Frame Changes

?? Change Log

See Changelog.md ??tch.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容