Giter Club home page Giter Club logo

hgcircularslider's People

Contributors

amichnia avatar csknns avatar e-sung avatar frederik-jacques avatar hamzaghazouani avatar monkeywithacupcake avatar s4cha avatar twodollarsesq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hgcircularslider's Issues

Setting end point value to max value causes track to reset to unfilled

When you set the end point to the max value the track resets to the zero state. Expected behavior would be for the track to be fully filled in to match 100% completed.

I looked at the source briefly and in the scaleValue function there is some division that is returning 0 when the value should be 1 which may be causing the problem

Crash suddenly on assertion!

I am using this slider on a player and its working fine . but some time its automatically become crash and i am getting the reason in the console that
assertion failed: Illegal interval: file /Users/sabakuch/Documents/Ravi/SlideMenu/Pods/HGCircularSlider/HGCircularSlider/Classes/CircularSliderHelper.swift, line 17

on line no 17 when i check
assert(min <= max, NSLocalizedString("Illegal interval", comment: ""))

screen shot 2017-01-04 at 5 00 29 pm

Wake up, bedtime images not rounded.

Hi,

I wonder what I miss with the setup. I've already tried to search at Stack Overflow, yet I haven't seen a related issue or answer to the problem.

Currently using xCode8.1\Swift 3

I have the following line of codes, circularSlider is an outlet.

override func viewDidLoad() {
super.viewDidLoad()
self.setUpCircularSlider()
self.onValueChangeUpdateData(self.circularSlider)
}

fileprivate func setUpCircularSlider(){
self.circularSlider.startThumbImage = UIImage(named: "bedTime")
self.circularSlider.endThumbImage = UIImage(named: "wakeUp")
let dayInSeconds = 24 * 60 * 60
self.circularSlider.maximumValue = CGFloat(dayInSeconds)
self.circularSlider.startPointValue = CGFloat(1 * 60 * 60)
self.circularSlider.endPointValue = CGFloat(8 * 60 * 60)
}

Having the following runtime attributes:

screen shot 2016-12-19 at 11 40 14 pm

This is the result:
screen shot 2016-12-19 at 11 31 04 pm

Notice the image, it doesn't look good.

Any input will be greatly appreciated.

Thank you.

Regards,
Jun

Unsupported Swift Version

When opening my project in xCode 11 I get the following error...

The target “HGCircularSlider” contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets.

Use Xcode 10.1 to migrate the code to Swift 4.

Any plans to migrate to Swift 4 in the CocoaPod?

Increase iOS deployment target to 9.0 the minimum supported by Xcode 12

The HGCircularSlider.podspec declares as deployment target 8.0 but the minimum support by Xcode 12 is 9.0. So we need update it:

s.ios.deployment_target = '9.0'`

Now it produces the following error:
The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99.

Make CGLineCap as property

Hi,
would it be possible to make CGLineCap available to set and make it for example square? I know I should probably make pull request but I am not good at this. I think it's easy to change and I would very much like it.
Thanks

Progress start from the bottom

Hi, is there a way to start the progress from the bottom? Otherwise, my calculations to show the correct clock time is messed up.

timerLight24

Continuous updates?

I was looking for a continuous updates option (like the standard Cocoa slider). I only seem to be getting updates on release... Is there a setting/property I'm not finding?

Help: 12 Hours clock with AM/PM support

Hello @HamzaGhazouani,

Thank you for sharing your work.
I am using this control in an app. The feature requires to show 12 hours clock (like regular wall clock) but the user can opt AM/PM. Like user can choose to sleep from 10 PM to 6 AM or 10 AM to 6 PM.

Can you please give me an insight n how to do this?
Your help is very much appreciated. TIA :)

Setting MinimumValue Causes Thumb to Jump when Touched

First of all, great little library you have here. Works great! :)

I'm using the RangeSlider and have set the minimumValue to 5 and the maximumValue to 30.

When I touch on one of the thumbs it jumps forward by 5 (the minimumValue). A quick fix I did was to change the delta function in CircularSliderHelper.swift. Instead of...

return scaleValue(deltaAngle, fromInterval: angleIntreval, toInterval: interval);

I changed it to...

let scaledValue = scaleValue(deltaAngle, fromInterval: angleIntreval, toInterval: interval) - interval.min;
		
return scaledValue;

This seems to have solved the problem. I'm not sure if this is the best place to put this or if it should've been in the ScaleValue function?

Gradient for circular presentation

Hi Sir,

Good day!

Does the library had any support for gradient? If not, any plan of having it?

Want to achieve like the image below:
screen shot 2017-01-15 at 1 35 19 am

Regards,
Jun

Can't customize slider with code.

I'm having a weird issue that I don't know how to fix.

I dragged a view through storyboard and changed its class to CircularView. In code, I'm setting the numberOfRounds property as so:

circularSlider.numberOfRounds = 1

My app crashes with EXC_BAD_ACCESS.

I don't see anything strange in the definition of the method in the source code, so I don't know why this isn't working. If I customize the view via Interface Builder, nothing shows up.

I installed the dependency with CocoaPods. Currently using v2.2.0.

Trying to debug the app:

(lldb) po circularSlider
▿ Optional<CircularSlider>
  - some : <UIView: 0x7fbae370a270; frame = (82 146; 250 250); autoresize = RM+BM; layer = <CALayer: 0x600003d0ef80>>

(lldb) po circularSlider.numberOfRounds
error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).
The process has been returned to the state before expression evaluation.
(lldb) 

And again, the numberOfRows property is not even set as an optional in the source code, so I don't think it's crashing due to it being nil? I'm very dumbfounded with this problem.

How to set the offset of the starting point of the track?

I try to make the filled track start from a customized point other than the 12 o'clock direction but could not find how.
One way I have thought about is to use RangeCircularSlider and disable or hide the startThumb, but I failed.
Any solutions?

Error: "Failed to render and update auto layout status..."

Following the setup instructions produces the result "Failed to render and update auto layout status..." when I try to change the class of a View to "Circular Slider" or any of the others provided. Running OS 10.12.6. The circular slider does not appear and indeed no functionality seems to work.

Fix the IB issue when we use the library with Carthage

Hello, i add "github "HamzaGhazouani/HGCircularSlider"" to my Cartfile, update dependencies and add framework in "general>linked frameworks and libraries", but when i change class on my view, view does not display slider.

Setting the start position

Hi,

I want to make a progress view that looks like this.

screen shot 2017-09-06 at 9 57 25 am

I can't seem to set the startPointValue to a position shown in the image above. It gets set to 0.

Examples don't work

I enter the example folder and run pod install. Result:

[!] The plist file at path `/Users/apple/Documents/xcode_projects/HGCircularSlider/Example/HGCircularSlider.xcodeproj/project.pbxproj` doesn't exist.

Swipe down gesture in modal window

If UIViewController is in 'segue kind - present modally' mode (ios 13) the slider stops working because a gesture that closes the modal window (swipe down) is recognized

Remove padding

Hello!

Is there a way to remove excess padding from the HGCircularSlider view?

screen shot 2017-10-03 at 2 14 51 am

Possible to stop at max / min ?

Is it possible to add a stop when maximum has been reached and same for minimum? I don't want the slider to start over again.

'M_PI' is deprecated in Xcode 8.3

Using Xcode 8.3, I have several swift compiler warnings : 'M_PI' is deprecated: Please use 'Double.pi' or '.pi' to get the value of correct type and avoid casting.

Disable touch?

Hi Hamza,

It seems i can't find the documentation.

My question: Can we disable touch on the Circularslider?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.