Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
Fix horizontal picker
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmosachin committed Jun 2, 2016
1 parent a62c8d6 commit 893a0c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ColorSlider.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ColorSlider'
s.version = '2.4'
s.version = '2.5'
s.summary = 'Snapchat-style color picker with live preview'
s.homepage = 'http://github.com/gizmosachin/ColorSlider'
s.license = 'MIT'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ ColorSlider is available for installation using [CocoaPods](http://cocoapods.org
platform :ios, '9.0'
use_frameworks!

pod 'ColorSlider', '~> 2.4'
pod 'ColorSlider', '~> 2.5'
```

### Carthage

ColorSlider is also available for installation using [Carthage](https://github.com/Carthage/Carthage). To integrate, add the following to your `Cartfile`:

``` odgl
github "gizmosachin/ColorSlider" >= 2.4
github "gizmosachin/ColorSlider" >= 2.5
```

### Swift Package Manager
Expand Down
2 changes: 1 addition & 1 deletion Source/ColorSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ import CoreGraphics
if orientation == .Vertical {
hue = 1 - max(0, min(1, (locationInView.y / frame.height)))
} else {
hue = 1 - max(0, min(1, (locationInView.x / frame.width)))
hue = max(0, min(1, (locationInView.x / frame.width)))
}
brightness = 1

Expand Down

0 comments on commit 893a0c7

Please sign in to comment.