eliotfowler / efcircularslider Goto Github PK
View Code? Open in Web Editor NEWAn extensible circular slider for iOS applications
Home Page: http://eliotfowler.github.io/EFCircularSlider/
License: MIT License
An extensible circular slider for iOS applications
Home Page: http://eliotfowler.github.io/EFCircularSlider/
License: MIT License
If snapToLabels == YES
and the slider is dragged just to the left of the first label, it will snap to the nth label.
Your EFCircularSlider it just amazing and the cuztomization with my needs are so easy to use i want to make than in the circle is move arounde the big circle in the circle that moves around to show the value instead on a label, i have some issue trying to implement this featured.
How you mind helping me with this issue???
Thanks for this AWESOME slider !
I'm wondering if there is a way to prevent the slider from being dragged beyond the maximum duration ?
Thanks!
First of all thanks for such a cool control.
I'm using your control in my app for the purpose of time selection. User can select amount of time upto 12 hours. For precision purposes I'm using 0 seconds as min and 43200 sec as max value. Now I'm facing 2 problems:
Every time I call setCurrentValue, the current value is set, but nothing is drawn.
Every time I call "setCurrentValue" the value received is OK, the currentValue is changed but in drawRect, currentValue stay at 0...
And it's the same with maximumValue.
Is there a way to update a slider from another slider ? thank you
Perhaps it's just me, but I've noticed that the top, bottom, left, and right side of the slider are just slightly clipped.
Is it possible to set an image as the the circular slider handle?
Something like:
circularSlider.handleType = CircularSliderHandleTypeCustom
would be great.
How can i change the angle of minimum value ?? so it's start from the right and not the top
The slider won't snap to the first label from the left side. It always snaps back to the previous one.
To reproduce:
Is it possible to draw only a half circle slider?
I love your circular slider! Just a few days and it has already gathered many likes.
Would like to know if it is possible to have a circular slider like the one used in clock to have it used with 999 values. However, the most chosen values are 1-20 so if that is the case, the slider will usually remain in less than the first quarter of the circle.
I was thinking of a circular slider that utilizes degree as a reference, for example, 1-30 belongs to 360 degree. When I slide around within the 360 degree (1 circle), I will be able to choose only 1-30. Continuing the degree toward 720 degree will get me values of the range 30-60 or if there is momentum, the values will be higher and goes straight to 999 when I slide within 3 rounds. This would be fun for the users.
I wonder if this is doable in the current version, if so, how do I proceed?
@Gissues:{"order":50,"status":"inprogress"}
Concentric circles are cool, man. But when you have some sliders are laid on top of each other quite close, (like the time picker demo), touch events get mucked up.
The culprit is the following in EFCircularSlider
:
-(BOOL) beginTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)event {
[super beginTrackingWithTouch:touch withEvent:event];
return YES;
}
This should do a bounds check with the circle first โ only if the touch lies within the circle should the tracking begin. Otherwise, the touch should fall through to the next picker (say, the hour picker), whose circle bounds check should succeed.
How can i set the currentValue programatically and apply to the interface?
@eliotfowler
Hello Sir,
Your Library is very good to use. But I'm not able to start the slider from bottom. If you can please help I will be thankful. And another thing make something like Semi Circular slider and give it like another property of circular slider. The function DrawLine
is not there in tour code to edit.
How could I change slider starting point? For example from west instead north?
Setting the currentValue of the slider directly works perfectly. When I try to set it in an animation though the drawn elements are not properly rendered.
This is how I tried to animate:
[UIView animateWithDuration:1.f animations:^{
self.hourSlider.currentValue = 50;
}];
It would be cool to have a setCurrentValue:animated:
similar to UIProgressView
's setProgress:Animated:
.
Is this slider is available for android ?
First thank you for your working at this to give us so amazing thing.
But I got a problem when I use it.
I wanna use this to get amounts of circle.It means when the currentValue becomes max I get first circle that is an hour.Then if it becomes the second max, I get second circle means two hours.
Now here, I don't know how to detect when is a circle is completed by user.
If the current won't be reset to zero, it will be easy for everything.
Could you help me?
Hi, when I try to compile the code using EFCircularSlider imported with bridging header in swift I get 18 errors "Explected a type" in EFCircularTrig.h, what could it be the problem?
Thanks.
Hey I love your slider control! But I was wondering if there was a way to have it start out at a predefined default position instead of always at zero? I want to preset my sliders at some predefined value.
I'm using this circular slider as a music progress bar, and would like to make the handle not visible since it indicates some possibility of user interaction. I tried to set the handleColor to a clearColor and to colorWithHue:0 saturation:0 brightness:0 alpha:0
and neither settings were responsive visually. Based on further testing, my issue is that setting the handleColor doesn't seem to have any effect. I have tested this on all handle types (including leaving type set to the default value).
I would like to count the number of times I do a revolution. Anyone have an idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.