[ADD] WatchOS 2 supports

This commit is contained in:
Yannick Loriot 2015-10-29 16:29:44 +01:00
parent 38f5e3ae61
commit a2d44321eb
7 changed files with 21 additions and 15 deletions

View File

@ -1,9 +1,14 @@
# Change log
## [Version 2.1.0](https://github.com/yannickl/DynamicColor/releases/tag/2.1.0)
*Released on 2015-10-29.*
- [ADD] WatchOS 2 supports
## [Version 2.0.1](https://github.com/yannickl/DynamicColor/releases/tag/2.0.1)
*Released on 2015-10-26.*
- [FIX] BITCODE support ([#6](https://github.com/yannickl/DynamicColor/pull/6))
- [FIX] BITCODE supports ([#6](https://github.com/yannickl/DynamicColor/pull/6))
## [Version 2.0.0](https://github.com/yannickl/DynamicColor/releases/tag/2.0.0)
*Released on 2015-09-17.*

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'DynamicColor'
s.version = '2.0.1'
s.version = '2.1.0'
s.license = 'MIT'
s.summary = 'Yet another extension to manipulate colors easily in Swift'
s.homepage = 'https://github.com/yannickl/DynamicColor.git'
@ -9,7 +9,8 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/yannickl/DynamicColor.git', :tag => s.version }
s.screenshot = 'http://yannickloriot.com/resources/dynamiccolor-sample-screenshot.png'
s.ios.deployment_target = '8.0'
s.ios.deployment_target = '8.0'
s.watchos.deployment_target = '2.0'
s.framework = 'UIKit'
s.source_files = 'DynamicColor/*.swift'

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>2.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>2.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -19,7 +19,7 @@ These two create a new color by adjusting the lightness of the receiver. You hav
</p>
```swift
let originalColor = UIColor(hex: 0xc0392b)
let originalColor = UIColor(hexString: "#c0392b")
let lighterColor = originalColor.lighterColor()
// equivalent to
@ -39,7 +39,7 @@ These will adjust the saturation of the color object, much like `darkenColor` an
</p>
```swift
let originalColor = UIColor(hex: 0xc0392b)
let originalColor = UIColor(hexString: "#c0392b")
let saturatedColor = originalColor.saturatedColor()
// equivalent to
@ -61,7 +61,7 @@ These adjust the hue value of the color in the same way like the others do. Agai
</p>
```swift
let originalColor = UIColor(hex: 0xc0392b)
let originalColor = UIColor(hexString: "#c0392b")
let adjustHueColor = originalColor.adjustedHueColor(45 / 360)
@ -77,7 +77,7 @@ A tint is the mixture of a color with white and a shade is the mixture of a colo
</p>
```swift
let originalColor = UIColor(hex: 0xc0392b)
let originalColor = UIColor(hexString: "#c0392b")
let tintColor = originalColor.tintColor()
// equivalent to
@ -97,7 +97,7 @@ This can invert the color object. The red, green, and blue values are inverted,
</p>
```swift
let originalColor = UIColor(hex: 0xc0392b)
let originalColor = UIColor(hexString: "#c0392b")
let invertColor = originalColor.invertColor()
```
@ -111,7 +111,7 @@ This can mix a given color with the receiver. It takes the average of each of th
</p>
```swift
let originalColor = UIColor(hex: 0xc0392b)
let originalColor = UIColor(hexString: "#c0392b")
let mixColor = originalColor.mixWithColor(UIColor.blueColor())
// equivalent to
@ -142,7 +142,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'DynamicColor', '~> 2.0.1'
pod 'DynamicColor', '~> 2.1.0'
```
Install into your project:
@ -173,7 +173,7 @@ $ brew install carthage
To integrate `DynamicColor` into your Xcode project using Carthage, specify it in your `Cartfile` file:
```ogdl
github "yannickl/DynamicColor" >= 2.0.1
github "yannickl/DynamicColor" >= 2.1.0
```
#### Manually