From 6b16fd7c7b99e449af2a7ff05203d951c9e984e4 Mon Sep 17 00:00:00 2001 From: R0CKSTAR Date: Wed, 21 Sep 2016 15:50:46 +0800 Subject: [PATCH] Update UIColor_Hex_Swift.podspec --- README.md | 12 ++++++------ UIColor_Hex_Swift.podspec | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 958fd29..1085467 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ UIColor+Hex, now Swift. ================= Convenience method for creating autoreleased color using RGBA hex string. - var strokeColor = UIColor(rgba: "#ffcc00").CGColor // Solid color + var strokeColor = UIColor("#ffcc00").CGColor // Solid color - var fillColor = UIColor(rgba: "#ffcc00dd").CGColor // Color with alpha + var fillColor = UIColor("#ffcc00dd").CGColor // Color with alpha - var backgroundColor = UIColor(rgba: "#FFF") // Supports shorthand 3 character representation + var backgroundColor = UIColor("#FFF") // Supports shorthand 3 character representation - var menuTextColor = UIColor(rgba: "#013E") // Supports shorthand 4 character representation (with alpha) + var menuTextColor = UIColor("#013E") // Supports shorthand 4 character representation (with alpha) var hexString = UIColor.redColor().hexString(false) // "#FF0000" @@ -26,7 +26,7 @@ Simply add the following lines to your `Podfile`: # required by CocoaPods 0.36.0.rc.1 for Swift Pods use_frameworks! -pod 'UIColor_Hex_Swift', '~> 2.1' +pod 'UIColor_Hex_Swift', '~> 3.0' ``` Then import it where you use it: @@ -41,7 +41,7 @@ import UIColor_Hex_Swift Simply add the following line to your `Cartfile`: ```ruby -github "yeahdongcn/UIColor-Hex-Swift" >= 2.1 +github "yeahdongcn/UIColor-Hex-Swift" >= 3.0 ``` ================= See more in [RSBarcodes_Swift](https://github.com/yeahdongcn/RSBarcodes_Swift) and [objc version](https://github.com/yeahdongcn/RSBarcodes) diff --git a/UIColor_Hex_Swift.podspec b/UIColor_Hex_Swift.podspec index 492f534..b5cebc4 100644 --- a/UIColor_Hex_Swift.podspec +++ b/UIColor_Hex_Swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "UIColor_Hex_Swift" - s.version = "2.3" + s.version = "3.0" s.summary = "Convenience method for creating autoreleased color using RGBA hex string." s.homepage = "https://github.com/yeahdongcn/UIColor-Hex-Swift" s.license = { :type => 'MIT', :file => 'LICENSE' }