Code Monkey home page Code Monkey logo

Comments (3)

viniciusaro avatar viniciusaro commented on July 20, 2024

Hi @bwu1, there are separate properties for each of the arcs. Try using both borderPercentageForFilledArc and borderPercentageforUnfilledArc separately, NOT borderPercentage. It should do the trick.

Let me know if that doesn't work.

from ios-circular-progress-bar.

bwu1 avatar bwu1 commented on July 20, 2024

Hi,
Thanks for the fast response. It looks like I was looking at the wrong property. The property names are somewhat confusing. The correct property to use in my case was "linePercentage" not "borderPercentage". Maybe you can make the distinction clear in the documentation.

Also, another problem I encountered a while back is that your code leaks A LOT, especially when continuously updating the percentage. I was able to fix it, but I don't remember exactly how I did it. I think it might have been in "Mcslice"'s customDrawInContext method and not manually release CG properties, but again I don't remember exactly.

Run the code in Leaks instrument and you should be able to see it.

Otherwise, this project is very helpful

from ios-circular-progress-bar.

viniciusaro avatar viniciusaro commented on July 20, 2024

Thanks for the feedback! I'll do some refactor on this as soon as I can.

from ios-circular-progress-bar.

Related Issues (12)

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.