Skip to content

duzixi/WebColors-with-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WebColors with Swift

一共可以生成140种Web Color。

以函数的方式调用,参数可以是序号、英文名或中文名。

例如:

  • 序号:

    self.view.backgroundColor = webColor(String(41));

    注意:需要转换成字符串类型

  • 英文名:

    self.view.backgroundColor = webColor("skyBlue");

    注意:开头字幕小写

  • 中文名:

    self.view.backgroundColor = webColor("天蓝色");

具体颜色名称参照如下:

image

License

(c) 2014 杜子兮(duzixi). Released under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages