Peloton-UIColors 0.5.0

Peloton-UIColors 0.5.0

测试已测试
语言 SwiftSwift
许可证 MIT
发布最后发布2018年7月
SwiftSwift 版本3.0
SPM支持 SPM

Jasdev SinghYu JiCarolyn Stewart 维护。



  • 作者:
  • Ryan Fitzgerald

Peloton-UIColors

CircleCI codecov Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

要求

安装

Peloton-UIColors 可以通过 CocoaPods 访问。要安装它,只需将以下行添加到您的 Podfile 中即可

pod "Peloton-UIColors"

用法

要使用Peloton-UIColors,请包含以下导入

import Peloton_UIColors

颜色

超级红

UIColor.pelotonSuperRed

深蓝

UIColor.pelotonDarkBlue

黄色

UIColor.pelotonYellow

深黄

UIColor.pelotonDarkYellow

中橙

UIColor.pelotonMediumOrange

蓝黑

UIColor.pelotonBlueBlack

板岩灰色

UIColor.pelotonSlateGray

深板岩灰色

UIColor.pelotonDarkSlateGray

中灰色

UIColor.pelotonMediumGray

中深灰色

UIColor.pelotonMediumDarkGray

浅灰色

UIColor.pelotonLightGray

浅蓝灰色

UIColor.pelotonLightBlueGray

极浅灰色

UIColor.pelotonVeryLightGray

背景灰色

UIColor.pelotonBackgroundGray

蓝白

UIColor.pelotonBlueWhite

模态背景颜色

UIColor.pelotonModalBackdropColor

心率区域 1

UIColor.pelotonHeartRateZone1

心率区域 2

UIColor.pelotonHeartRateZone2

心率区域 3

UIColor.pelotonHeartRateZone3

心率区域 4

UIColor.pelotonHeartRateZone4

心率区 5

UIColor.pelotonHeartRateZone5

渐变色

聚光灯渐变

if let context = UIGraphicsGetCurrentContext() {
  UIColor.drawSpotlightGradient(context, frame: rect)
}

浅灰色渐变

if let context = UIGraphicsGetCurrentContext() {
  UIColor.drawLightGrayGradient(context, frame: rect)
}

测试

示例测试套件中所有快照均使用iPad Air 2模拟器记录。

作者

许可协议

Peloton-UIColors遵照MIT许可协议。有关更多信息,请参阅LICENSE文件。