Comments (5)
Ah okay, no worries!
Based on the way the colors are drawn in the GradientView
there'll always be a hard drop off unfortunately (Snapchat's new color picker actually does this as well). I noticed it's particularly bad when you have a longer slider though, so I'll see if I can come up with a fix and push that. If it'd be more preferable to just hide the black and white colors altogether instead (the old behavior), you can also set the insets for black and white to zero:
let gradientView = colorSlider.gradientView
gradientView.blackInset = 0
gradientView.whiteInset = 0
from colorslider.
Oops, that's really bad and completely unintentional. Will push a fix.
from colorslider.
(sorry, my screenshot represents the behavior not the actual visuals)
from colorslider.
Forget what I said earlier - GradientView
now draws the gradient so it's continuous, even with the black and white at the ends. pod update
to v4.1 should do the trick.
from colorslider.
from colorslider.
Related Issues (20)
- Being able to set a value HOT 5
- 'ColorSlider' initializer is inaccessible due to 'internal' protection level HOT 6
- Trigger an event only after sliding is completed(continuous = false) HOT 2
- QUESTION: Switching starter color (black to white instead of white to black) HOT 1
- ColorSlider.hitTest() still gets called despite set to isHidden = true HOT 1
- Carthage build failed HOT 4
- Autolayout issues? HOT 1
- Manually setting randomly calculated color HOT 2
- iOS 12 ---> missing current color UIView above slider? HOT 1
- swift 4.2 support 🙏 HOT 2
- When sliding away from the slider the color brightness does not change correctly HOT 4
- use centerPreview HOT 1
- Swift 5.0 support
- Setting color manually will not change the position of previewView HOT 6
- After lifting the finger from the slider, the color slider freezes
- Show colorslider without preview mode HOT 1
- Too much red, colors unevenly distributed HOT 1
- TouchUpInside called twice
- Unable to remove old PreviewView icon from background to toggle btw two color palettes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colorslider.