Skip to content

Commit

Permalink
Update UIColor_Hex_Swift.podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
yeahdongcn committed Sep 21, 2016
1 parent c64695a commit 6b16fd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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:
Expand All @@ -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)
2 changes: 1 addition & 1 deletion UIColor_Hex_Swift.podspec
Original file line number Diff line number Diff line change
@@ -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' }
Expand Down

0 comments on commit 6b16fd7

Please sign in to comment.